2020-05-17 09:07:41 -05:00
|
|
|
from os import path # NOQA
|
2019-05-12 00:13:35 -05:00
|
|
|
from typing import Union
|
2017-07-02 04:26:41 -05:00
|
|
|
|
2021-11-08 20:14:39 -06:00
|
|
|
__all__ = [
|
|
|
|
"CONSTANT1",
|
|
|
|
"Exc",
|
|
|
|
"Foo",
|
|
|
|
"_Baz",
|
|
|
|
"bar",
|
|
|
|
"qux",
|
|
|
|
"path",
|
|
|
|
]
|
|
|
|
|
2020-05-17 04:20:24 -05:00
|
|
|
#: module variable
|
|
|
|
CONSTANT1 = None
|
|
|
|
CONSTANT2 = None
|
|
|
|
|
|
|
|
|
2017-07-02 04:26:41 -05:00
|
|
|
class Foo:
|
2020-05-17 04:20:24 -05:00
|
|
|
#: class variable
|
|
|
|
CONSTANT3 = None
|
|
|
|
CONSTANT4 = None
|
|
|
|
|
2020-04-29 06:44:59 -05:00
|
|
|
class Bar:
|
|
|
|
pass
|
|
|
|
|
2017-07-02 04:26:41 -05:00
|
|
|
def __init__(self):
|
2020-08-01 04:29:45 -05:00
|
|
|
#: docstring
|
|
|
|
self.value = 1
|
2017-07-02 04:26:41 -05:00
|
|
|
|
|
|
|
def bar(self):
|
|
|
|
pass
|
2017-11-17 02:45:01 -06:00
|
|
|
|
|
|
|
@property
|
|
|
|
def baz(self):
|
|
|
|
pass
|
2019-05-12 00:13:35 -05:00
|
|
|
|
|
|
|
|
2020-05-17 09:07:41 -05:00
|
|
|
class _Baz:
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
def bar(x: Union[int, str], y: int = 1) -> None:
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
def _quux():
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class Exc(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class _Exc(Exception):
|
2019-05-12 00:13:35 -05:00
|
|
|
pass
|
2020-05-17 11:07:11 -05:00
|
|
|
|
|
|
|
|
|
|
|
#: a module-level attribute
|
|
|
|
qux = 2
|
2021-11-08 20:14:39 -06:00
|
|
|
#: a module-level attribute that has been excluded from __all__
|
|
|
|
quuz = 2
|