xarray-contrib / cf-xarray

an accessor for xarray objects that interprets CF attributes
https://cf-xarray.readthedocs.io/
Apache License 2.0
157 stars 39 forks source link

fix mypy failure #469

Closed dcherian closed 11 months ago

dcherian commented 1 year ago

There's a mypy failure on the scheduled CI

Found 2 errors in 1 file (checked 22 source files)
cf_xarray/accessor.py:747: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
cf_xarray/accessor.py:793: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
cf_xarray/accessor.py:794: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
cf_xarray/tests/test_accessor.py:594: error: Item "None" of "_AxesBase | None" has no attribute "get_xlim"  [union-attr]
cf_xarray/tests/test_accessor.py:595: error: Item "None" of "_AxesBase | None" has no attribute "get_ylim"  [union-attr]
Error: Process completed with exit code 1.