improve type annotations in tests
This commit is contained in:
parent
f87dc7d771
commit
5011750637
15 changed files with 28 additions and 28 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# type: ignore
|
||||
# mypy: disable-error-code="union-attr, arg-type"
|
||||
from typing import IO
|
||||
from io import BytesIO
|
||||
|
||||
|
|
@ -445,7 +445,7 @@ def test_file_3() -> None:
|
|||
for ii, gg in enumerate(geometry):
|
||||
msg = f'Fail on polygon {ii}'
|
||||
assert len(gg.properties) == 1, msg
|
||||
assert gg.properties[0].name == 0, msg
|
||||
assert gg.properties[0].name == 0, msg # type: ignore
|
||||
assert len(gg.properties[0].values) == 1, msg
|
||||
assert gg.properties[0].values[0] * 5 == 1, msg
|
||||
assert gg.properties[0].values[0] * 5 == 1, msg # type: ignore
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue