home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1119043959

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/5734#issuecomment-1119043959 https://api.github.com/repos/pydata/xarray/issues/5734 1119043959 IC_kwDOAMm_X85Cs0F3 14371165 2022-05-05T21:03:37Z 2022-05-05T21:03:37Z MEMBER

Ok, this kind of works. But there's a new error because I defined the Data*ResampleBase-classes with a for-loop.

``` Found 32 errors in 15 files (checked 140 source files) xarray/backends/locks.py:10: error: Incompatible types in assignment (expression has type "Type[Lock]", variable has type "Type[SerializableLock]") [assignment] xarray/backends/locks.py:15: error: Cannot assign to a type [misc] xarray/backends/locks.py:15: error: Incompatible types in assignment (expression has type "None", variable has type "Type[Lock]") [assignment] xarray/core/types.py:19: error: Cannot assign to a type [misc] xarray/core/types.py:19: error: Incompatible types in assignment (expression has type "Type[ndarray[Any, Any]]", variable has type "Type[Array]") [assignment] xarray/core/duck_array_ops.py:33: error: Incompatible types in assignment (expression has type "None", variable has type Module) [assignment] xarray/core/nanops.py:14: error: Incompatible types in assignment (expression has type "None", variable has type Module) [assignment] xarray/core/_reductions.py:15: error: Skipping analyzing "flox": module is installed, but missing library stubs or py.typed marker [import] xarray/core/_reductions.py:15: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports xarray/core/groupby.py:584: error: Skipping analyzing "flox.xarray": module is installed, but missing library stubs or py.typed marker [import] xarray/core/dataset.py:113: error: Cannot assign to a type [misc] xarray/core/dataset.py:113: error: Incompatible types in assignment (expression has type "None", variable has type "Type[Delayed]") [assignment] xarray/core/dataset.py:1761: error: Incompatible return value type (got "Union[Tuple[ArrayWriter, AbstractDataStore], bytes, Delayed, None]", expected "Union[bytes, Delayed, None]") [return-value] xarray/core/dataarray.py:70: error: Cannot assign to a type [misc] xarray/core/dataarray.py:70: error: Incompatible types in assignment (expression has type "None", variable has type "Type[Delayed]") [assignment] xarray/core/computation.py:1864: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables [misc] xarray/core/computation.py:1864: error: Overloaded function implementation cannot satisfy signature 3 due to inconsistencies in how they use type variables [misc] xarray/core/_typed_ops.pyi:24: error: Cannot assign to a type [misc] xarray/core/_typed_ops.pyi:24: error: Incompatible types in assignment (expression has type "Type[ndarray[Any, Any]]", variable has type "Type[Array]") [assignment] xarray/core/resample.py:14: error: Variable "xarray.core.resample.GroupByBase" is not valid as a type [valid-type] xarray/core/resample.py:14: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases xarray/core/resample.py:14: error: Invalid base class "GroupByBase" [misc] xarray/core/resample.py:189: error: No overload variant of "__setitem__" of "list" matches argument types "int", "Type[_Resample]" [call-overload] xarray/core/resample.py:189: note: Possible overload variants: xarray/core/resample.py:189: note: def __setitem__(self, SupportsIndex, None) -> None xarray/core/resample.py:189: note: def __setitem__(self, slice, Iterable[None]) -> None xarray/core/resample.py:194: error: Variable "xarray.core.resample.DataArrayResampleBase" is not valid as a type [valid-type] xarray/core/resample.py:194: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases xarray/core/resample.py:194: error: Invalid base class "DataArrayResampleBase" [misc] xarray/core/resample.py:285: error: Variable "xarray.core.resample.DatasetResampleBase" is not valid as a type [valid-type] xarray/core/resample.py:285: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases xarray/core/resample.py:285: error: Invalid base class "DatasetResampleBase" [misc] xarray/backends/api.py:38: error: Cannot assign to a type [misc] xarray/backends/api.py:38: error: Incompatible types in assignment (expression has type "None", variable has type "Type[Delayed]") [assignment] xarray/tests/test_computation.py:2019: error: No overload variant of "polyval" matches argument types "Any", "Any" [call-overload] xarray/tests/test_computation.py:2019: note: Possible overload variants: xarray/tests/test_computation.py:2019: note: def polyval(coord: DataArray, coeffs: DataArray, degree_dim: Hashable) -> DataArray xarray/tests/test_computation.py:2019: note: def [T_Xarray in (DataArray, Dataset)] polyval(coord: T_Xarray, coeffs: Dataset, degree_dim: Hashable) -> Dataset xarray/tests/test_computation.py:2019: note: def [T_Xarray in (DataArray, Dataset)] polyval(coord: Dataset, coeffs: T_Xarray, degree_dim: Hashable) -> Dataset xarray/tests/test_testing.py:13: error: Cannot infer type of lambda [misc] xarray/tests/test_testing.py:13: error: Incompatible types in assignment (expression has type "Callable[[Any], Any]", variable has type "Callable[[Any, Any, Any, Any, Any, Any, Any, Any, Any], Any]") [assignment] ```
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  978356586
Powered by Datasette · Queries took 0.669ms · About: xarray-datasette