aboutsummaryrefslogtreecommitdiff
path: root/mypy.ini
diff options
context:
space:
mode:
authorBryan Forbes <bryan@reigndropsfall.net>2021-02-10 14:37:35 -0600
committerElvis Pranskevichus <elvis@magic.io>2021-08-03 17:54:57 -0700
commit39f9f0de168b0149456a1aca09ef3f442f436bbf (patch)
tree785d7d9d9543c78e38019ced2f648d492f6adf6b /mypy.ini
parent67c5edfb8284e39ab6a0be9a4644ede306c6e9bd (diff)
downloadimmutables-39f9f0de168b0149456a1aca09ef3f442f436bbf.tar.gz
immutables-39f9f0de168b0149456a1aca09ef3f442f436bbf.zip
Refactor typings
* Improve typing of `__init__()` * Update typing of `Map`-producing functions to produce the correct type * Update typing of other methods to more closely align with `Mapping` * Add protocol classes for unexposed data structures * Export protocol classes for ease of use in typed code * Update stub file to pass in mypy strict mode
Diffstat (limited to 'mypy.ini')
-rw-r--r--mypy.ini9
1 files changed, 9 insertions, 0 deletions
diff --git a/mypy.ini b/mypy.ini
new file mode 100644
index 0000000..6b604b8
--- /dev/null
+++ b/mypy.ini
@@ -0,0 +1,9 @@
+[mypy]
+incremental = True
+strict = True
+
+[mypy-immutables.map]
+ignore_errors = True
+
+[mypy-immutables._testutils]
+ignore_errors = True