Skip to content

Commit

Permalink
Add complete types to take all allowed keys into account (#873)
Browse files Browse the repository at this point in the history
* Use new style typing

* Fix type annotations to allow all keys

* Use string type annotations where required

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Remove outdated comment

* Ignore `if TYPE_CHECKING:` lines in coverage

* Remove duplicate test

* Fix mypy errors

* Update algorithms.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fully switch to modern annotations

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update `pre-commit` mypy config

* Use Python 3.11 for mypy

* Update mypy Python version in `pyproject.toml`

* Few tests mypy fixes

* fix mypy errors on tests

* Fix key imports

* Remove unused import

* Fix randomly failing test

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
  • Loading branch information
3 people committed Apr 16, 2023
1 parent ba72644 commit 56b3d56
Show file tree
Hide file tree
Showing 11 changed files with 241 additions and 194 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ repos:
rev: "v1.1.1"
hooks:
- id: mypy
additional_dependencies: [cryptography>=3.4.0]

0 comments on commit 56b3d56

Please sign in to comment.