Commit 34e184f
authored
open up Mapped.__set__ for mypy 1.2 (#253)
We are getting errors in 1.4 mypy due to the Mapped.__set__ method
being too specific in some way:
[classic@photon3 sqlalchemy:rel_1_4]$ PYTHONPATH=~/dev/sqlalchemy/lib/:~/dev/sqlalchemy2-stubs/ mypy test/ext/mypy/files/dataclasses_workaround.py
test/ext/mypy/files/dataclasses_workaround.py:34: error: Unsupported "__set__" in "Mapped" [misc]
test/ext/mypy/files/dataclasses_workaround.py:35: error: Unsupported "__set__" in "Mapped" [misc]
test/ext/mypy/files/dataclasses_workaround.py:36: error: Unsupported "__set__" in "Mapped" [misc]
test/ext/mypy/files/dataclasses_workaround.py:37: error: Unsupported "__set__" in "Mapped" [misc]
test/ext/mypy/files/dataclasses_workaround.py:38: error: Unsupported "__set__" in "Mapped" [misc]
test/ext/mypy/files/dataclasses_workaround.py:59: error: Unsupported "__set__" in "Mapped" [misc]
test/ext/mypy/files/dataclasses_workaround.py:60: error: Unsupported "__set__" in "Mapped" [misc]
test/ext/mypy/files/dataclasses_workaround.py:61: error: Unsupported "__set__" in "Mapped" [misc]
Found 8 errors in 1 file (checked 1 source file)
Open this up to avoid errors.1 parent 1b48d8c commit 34e184f
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 109 | + | |
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
| |||
0 commit comments