Skip to content

Commit 54fb4f9

Browse files
Help mypy find stubs & namespace packages.
1 parent e974daa commit 54fb4f9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.mypy.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
[mypy]
2+
3+
;
4+
; Import discovery
5+
;
6+
; tell mypy where the project root is for module resolution
7+
mypy_path=$PYTHONPATH,$PYTHONPATH/stubs
8+
; tell mypy to look at namespace packages (ones without an __init__.py)
9+
namespace_packages = True
10+
11+
;
12+
; Strict mode, almost
13+
;
214
disallow_any_generics = True
315
disallow_subclassing_any = True
416
disallow_untyped_calls = True

0 commit comments

Comments
 (0)