You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# save as proj_mypy_test.py# then run mypy proj_mypy_test.pyimportpyproj.crsaou=pyproj.crs.CRS("epsg:4326").area_of_useassertaouisnotNonex1, y1, x2, y2=aou.boundsprint(f"X:[{x1}, {x2}] Y: [{y1}, {y2}]")
Problem description
Running code above is fine, but checking with mypy produces following errors:
proj_mypy_test.py:4: error: Need more than 1 value to unpack (4 expected)
proj_mypy_test.py:5: error: Cannot determine type of "x1"
proj_mypy_test.py:5: error: Cannot determine type of "x2"
proj_mypy_test.py:5: error: Cannot determine type of "y1"
proj_mypy_test.py:5: error: Cannot determine type of "y2"
Found 5 errors in 1 file (checked 1 source file)
Expected Output
no mypy errors is expected in that case and types of bounds should be determined to be as float.
Code Sample, a copy-pastable example if possible
Problem description
Running code above is fine, but checking with mypy produces following errors:
Expected Output
no mypy errors is expected in that case and types of bounds should be determined to be as
float
.Problem Diagnostic
pyproj/pyproj/_crs.pyi
Lines 25 to 26 in 76c3836
I think code above should be
Environment Information
Installation method
Conda environment information (if you installed with conda):
Environment (
conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: