Skip to content

Commit ac478aa

Browse files
committed
Add typings
1 parent 9825bbb commit ac478aa

31 files changed

+3346
-603
lines changed

.flake8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[flake8]
22
ignore = E402,E731,W503,W504,E252
3-
exclude = .git,__pycache__,build,dist,.eggs,.github,.local
3+
exclude = .git,__pycache__,build,dist,.eggs,.github,.local,.venv*
4+
per-file-ignores = *.pyi: F401, F403, F405, F811, E127, E128, E203, E266, E301, E302, E305, E501, E701, E704, E741, B303, W503, W504

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ docs/_build
3434
/.eggs
3535
/.vscode
3636
/.mypy_cache
37+
/.venv*
38+
/.ci
39+
/.vim

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
recursive-include docs *.py *.rst Makefile *.css
22
recursive-include examples *.py
33
recursive-include tests *.py *.pem
4-
recursive-include asyncpg *.pyx *.pxd *.pxi *.py *.c *.h
4+
recursive-include asyncpg *.pyx *.pxd *.pxi *.py *.c *.h *.pyi
55
include LICENSE README.rst Makefile performance.png .flake8
6+
include asyncpg/py.typed

asyncpg/__init__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@
1111
from .protocol import Record # NOQA
1212
from .types import * # NOQA
1313

14+
from . import exceptions
15+
1416

1517
from ._version import __version__ # NOQA
1618

1719

18-
__all__ = ('connect', 'create_pool', 'Pool', 'Record', 'Connection')
19-
__all__ += exceptions.__all__ # NOQA
20+
__all__ = (
21+
'connect',
22+
'create_pool',
23+
'Pool',
24+
'Record',
25+
'Connection'
26+
) + exceptions.__all__

0 commit comments

Comments
 (0)