Skip to content

Commit

Permalink
better typing support (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanasco committed Jun 16, 2023
1 parent 87df01e commit 18a8e5e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
8 changes: 8 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[mypy-pyramid.*]
ignore_missing_imports = True

[mypy-webob.*]
ignore_missing_imports = True

[mypy-zope.interface.*]
ignore_missing_imports = True
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[tool.black]
target-version = ['py36']

3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ cover-erase=1
[aliases]
dev = develop easy_install pyramid_session_redis[testing]

[mypy]
ignore_missing_imports = True

[flake8]
exclude = src/pyramid_session_redis/docs

Expand Down
2 changes: 1 addition & 1 deletion src/pyramid_session_redis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# pypi
from redis import VERSION as _redis_version # since at least the 2.x branch
from webob.cookies import SignedSerializer # type: ignore[import]
from webob.cookies import SignedSerializer

# local
from . import compat # noqa: F401 ; trigger compat routines
Expand Down
2 changes: 1 addition & 1 deletion src/pyramid_session_redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def main(global_config, **settings):

# typing
if TYPE_CHECKING:
from pyrarmid.request import Request
from pyramid.request import Request

# ==============================================================================

Expand Down

0 comments on commit 18a8e5e

Please sign in to comment.