[WIP] handle diverging protocols - #22025
Open
ilevkivskyi wants to merge 8 commits into
Open
ilevkivskyi wants to merge 8 commits into
ilevkivskyi wants to merge 8 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- tests/arrays/test_string_arrow.py:109: error: Unused "type: ignore" comment [unused-ignore]
- tests/arrays/test_string_arrow.py:110: error: Unused "type: ignore" comment [unused-ignore]
- tests/arrays/test_string_arrow.py:111: error: Unused "type: ignore" comment [unused-ignore]
- tests/arrays/test_string_arrow.py:112: error: Unused "type: ignore" comment [unused-ignore]
- tests/arrays/test_string_arrow.py:113: error: Unused "type: ignore" comment [unused-ignore]
- tests/arrays/test_string_arrow.py:114: error: Unused "type: ignore" comment [unused-ignore]
- tests/arrays/test_string_arrow.py:115: error: Unused "type: ignore" comment [unused-ignore]
- tests/arrays/test_string_arrow.py:116: error: Unused "type: ignore" comment [unused-ignore]
+ pandas-stubs/core/series.pyi:1951: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 2.4.0+dev.86c0e77e9b646a4b69797425482036ac38b7f917
+ pandas-stubs/core/series.pyi:1951: note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+ File "", line 6, in <module>
+ sys.exit(console_entry())
+ File "/__main__.py", line 16, in console_entry
+ main()
+ File "/main.py", line 167, in main
+ res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+ File "/main.py", line 257, in run_build
+ res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+ File "/build.py", line 424, in build
+ result = build_inner(
+ File "/build.py", line 539, in build_inner
+ graph = dispatch(sources, manager, stdout, connect_threads)
+ File "/build.py", line 4193, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 4661, in process_graph
+ done, still_working, results = manager.wait_for_done(graph)
+ File "/build.py", line 1477, in wait_for_done
+ process_stale_scc(graph, next_scc, self)
+ File "/build.py", line 4822, in process_stale_scc
+ process_stale_scc_full(graph, ascc, manager)
+ File "/build.py", line 4883, in process_stale_scc_full
+ graph[id].type_check_first_pass()
+ File "/build.py", line 3451, in type_check_first_pass
+ self.type_checker().check_first_pass(recurse_into_functions=recurse_into_functions)
+ File "/checker.py", line 634, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 781, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1735, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2823, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 781, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1830, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3347, in visit_block
+ self.accept(s)
+ File "/checker.py", line 781, in accept
+ stmt.accept(self)
+ ~~~~~~~~~~~^^^^^^
+ File "/nodes.py", line 869, in accept
+ return visitor.visit_overloaded_func_def(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 856, in visit_overloaded_func_def
+ self._visit_overloaded_func_def(defn)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 927, in _visit_overloaded_func_def
+ self.check_overlapping_overloads(defn)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 1088, in check_overlapping_overloads
+ if is_unsafe_overlapping_overload_signatures(sig1, sig2, type_vars):
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
+ File "/checker.py", line 9311, in is_unsafe_overlapping_overload_signatures
+ is_callable_compatible(
+ ~~~~~~~~~~~~~~~~~~~~~~^
+ sig_variant,
+ ^^^^^^^^^^^^
+ ...<5 lines>...
+ allow_partial_overlap=True,
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ )
+ ^
+ File "/subtypes.py", line 1856, in is_callable_compatible
+ return are_parameters_compatible(
+ left,
+ ...<5 lines>...
+ strict_concatenate_check=strict_concatenate_check,
+ )
+ File "/subtypes.py", line 1976, in are_parameters_compatible
+ if not are_args_compatible(
+ ~~~~~~~~~~~~~~~~~~~^
+ left_arg,
+ ^^^^^^^^^
+ ...<4 lines>...
+ allow_imprecise_kinds=right.imprecise_arg_kinds,
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ ):
+ ^
+ File "/subtypes.py", line 2141, in are_args_compatible
+ return is_compat(right.typ, left.typ)
+ File "/checker.py", line 9834, in is_overlapping_types_for_overload
+ return is_overlapping_types(left, right, ignore_promotions=True, overlap_for_overloads=True)
+ File "/meet.py", line 469, in is_overlapping_types
+ if _is_overlapping_types(l, r):
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/meet.py", line 453, in _is_overlapping_types
+ return is_overlapping_types(
+ left,
+ ...<3 lines>...
+ seen_types=seen_types.copy(),
+ )
+ File "/meet.py", line 427, in is_overlapping_types
+ if are_related_types(
+ ~~~~~~~~~~~~~~~~~^
+ left, right, proper_subtype=overlap_for_overloads, ignore_promotions=ignore_promotions
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ ):
+ ^
+ File "/meet.py", line 342, in are_related_types
+ return is_proper_subtype(
+ ~~~~~~~~~~~~~~~~~^
+ left, right, ignore_promotions=ignore_promotions
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ ) or is_proper_subtype(right, left, ignore_promotions=ignore_promotions)
+ ^
+ File "/subtypes.py", line 234, in is_proper_subtype
+ return _is_subtype(left, right, subtype_context, proper_subtype=True)
+ File "/subtypes.py", line 382, in _is_subtype
+ return left.accept(SubtypeVisitor(orig_right, subtype_context, proper_subtype))
+ ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/types.py", line 1698, in accept
+ return visitor.visit_instance(self)
+ ~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/subtypes.py", line 632, in visit_instance
+ if right.type.is_protocol and is_protocol_implementation(
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~^
+ left, right, proper_subtype=self.proper_subtype, options=self.options
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ ):
+ ^
+ File "/subtypes.py", line 1345, in is_protocol_implementation
+ is_compat = is_proper_subtype(subtype, supertype)
+ File "/subtypes.py", line 234, in is_proper_subtype
+ return _is_subtype(left, right, subtype_context, proper_subtype=True)
+ File "/subtypes.py", line 382, in _is_subtype
+ return left.accept(SubtypeVisitor(orig_right, subtype_context, proper_subtype))
+ ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/types.py", line 2792, in accept
+ return visitor.visit_overloaded(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/subtypes.py", line 1068, in visit_overloaded
+ if combined is not None and self._is_subtype(combined, right):
+ ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
+ File "/subtypes.py", line 453, in _is_subtype
+ return is_proper_subtype(left, right, subtype_context=self.subtype_context)
+ File "/subtypes.py", line 234, in is_proper_subtype
+ return _is_subtype(left, right, subtype_context, proper_subtype=True)
+ File "/subtypes.py", line 382, in _is_subtype
+ return left.accept(SubtypeVisitor(orig_right, subtype_context, proper_subtype))
+ ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/types.py", line 2375, in accept
+ return visitor.visit_callable_type(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/subtypes.py", line 745, in visit_callable_type
+ return is_callable_compatible(
+ left,
+ ...<8 lines>...
+ ),
+ )
+ File "/subtypes.py", line 1839, in is_callable_compatible
+ unified = unify_generic_callable(left, right, ignore_return=ignore_return)
+ File "/subtypes.py", line 2174, in unify_generic_callable
+ cs = mypy.constraints.infer_constraints(
+ type.copy_modified(ret_type=UninhabitedType()),
+ ...<2 lines>...
+ skip_neg_op=True,
+ )
+ File "/constraints.py", line 324, in infer_constraints
+ return _infer_constraints(template, actual, direction, skip_neg_op, erase_types)
+ File "/constraints.py", line 433, in _infer_constraints
+ return template.accept(ConstraintBuilderVisitor(actual, direction, skip_neg_op, erase_types))
+ ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/types.py", line 2375, in accept
+ return visitor.visit_callable_type(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/constraints.py", line 1168, in visit_callable_type
+ infer_callable_arguments_constraints(template, cactual, self.direction)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/constraints.py", line 1702, in infer_callable_arguments_constraints
+ res.extend(infer_directed_arg_constraints(left_arg.typ, right_arg.typ, direction))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/constraints.py", line 1662, in infer_directed_arg_constraints
+ return infer_constraints(left, right, neg_op(direction))
+ File "/constraints.py", line 324, in infer_constraints
+ return _infer_constraints(template, actual, direction, skip_neg_op, erase_types)
+ File "/constraints.py", line 338, in _infer_constraints
+ template = mypy.typeops.make_simplified_union(template.items, keep_erased=True)
+ File "/typeops.py", line 646, in make_simplified_union
+ simplified_set: Sequence[Type] = _remove_redundant_union_items(items, keep_erased)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
+ File "/typeops.py", line 746, in _remove_redundant_union_items
+ if is_proper_subtype(
+ ~~~~~~~~~~~~~~~~~^
+ ti, tj, keep_erased_types=keep_erased, ignore_promotions=True
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ ):
+ ^
+ File "/subtypes.py", line 234, in is_proper_subtype
+ return _is_subtype(left, right, subtype_context, proper_subtype=True)
+ File "/subtypes.py", line 382, in _is_subtype
+ return left.accept(SubtypeVisitor(orig_right, subtype_context, proper_subtype))
+ ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/types.py", line 1698, in accept
+ return visitor.visit_instance(self)
+ ~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/subtypes.py", line 632, in visit_instance
+ if right.type.is_protocol and is_protocol_implementation(
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~^
+ left, right, proper_subtype=self.proper_subtype, options=self.options
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ ):
+ ^
+ File "/subtypes.py", line 1345, in is_protocol_implementation
+ is_compat = is_proper_subtype(subtype, supertype)
+ File "/subtypes.py", line 234, in is_proper_subtype
+ return _is_subtype(left, right, subtype_context, proper_subtype=True)
+ File "/subtypes.py", line 382, in _is_subtype
+ return left.accept(SubtypeVisitor(orig_right, subtype_context, proper_subtype))
+ ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/types.py", line 2792, in accept
+ return visitor.visit_overloaded(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/subtypes.py", line 1068, in visit_overloaded
+ if combined is not None and self._is_subtype(combined, right):
+ ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
+ File "/subtypes.py", line 453, in _is_subtype
+ return is_proper_subtype(left, right, subtype_context=self.subtype_context)
+ File "/subtypes.py", line 234, in is_proper_subtype
+ return _is_subtype(left, right, subtype_context, proper_subtype=True)
+ File "/subtypes.py", line 382, in _is_subtype
+ return left.accept(SubtypeVisitor(orig_right, subtype_context, proper_subtype))
+ ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/types.py", line 2375, in accept
+ return visitor.visit_callable_type(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/subtypes.py", line 745, in visit_callable_type
+ return is_callable_compatible(
+ left,
+ ...<8 lines>...
+ ),
+ )
+ File "/subtypes.py", line 1839, in is_callable_compatible
+ unified = unify_generic_callable(left, right, ignore_return=ignore_return)
+ File "/subtypes.py", line 2174, in unify_generic_callable
+ cs = mypy.constraints.infer_constraints(
+ type.copy_modified(ret_type=UninhabitedType()),
+ ...<2 lines>...
+ skip_neg_op=True,
+ )
+ File "/constraints.py", line 324, in infer_constraints
+ return _infer_constraints(template, actual, direction, skip_neg_op, erase_types)
+ File "/constraints.py", line 433, in _infer_constraints
+ return template.accept(ConstraintBuilderVisitor(actual, direction, skip_neg_op, erase_types))
+ ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/types.py", line 2375, in accept
+ return visitor.visit_callable_type(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/constraints.py", line 1168, in visit_callable_type
+ infer_callable_arguments_constraints(template, cactual, self.direction)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/constraints.py", line 1702, in infer_callable_arguments_constraints
+ res.extend(infer_directed_arg_constraints(left_arg.typ, right_arg.typ, direction))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/constraints.py", line 1662, in infer_directed_arg_constraints
+ return infer_constraints(left, right, neg_op(direction))
+ File "/constraints.py", line 324, in infer_constraints
+ return _infer_constraints(template, actual, direction, skip_neg_op, erase_types)
+ File "/constraints.py", line 338, in _infer_constraints
+ template = mypy.typeops.make_simplified_union(template.items, keep_erased=True)
+ File "/typeops.py", line 646, in make_simplified_union
+ simplified_set: Sequence[Type] = _remove_redundant_union_items(items, keep_erased)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
+ File "/typeops.py", line 746, in _remove_redundant_union_items
+ if is_proper_subtype(
+ ~~~~~~~~~~~~~~~~~^
+ ti, tj, keep_erased_types=keep_erased, ignore_promotions=True
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ ):
+ ^
+ File "/subtypes.py", line 234, in is_proper_subtype
+ return _is_subtype(left, right, subtype_context, proper_subtype=True)
+ File "/subtypes.py", line 382, in _is_subtype
+ return left.accept(SubtypeVisitor(orig_right, subtype_context, proper_subtype))
+ ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/types.py", line 1698, in accept
+ return visitor.visit_instance(self)
+ ~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/subtypes.py", line 632, in visit_instance
+ if right.type.is_protocol and is_protocol_implementation(
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~^
+ left, right, proper_subtype=self.proper_subtype, options=self.options
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ ):
+ ^
+ File "/subtypes.py", line 1345, in is_protocol_implementation
+ is_compat = is_proper_subtype(subtype, supertype)
+ File "/subtypes.py", line 234, in is_proper_subtype
+ return _is_subtype(left, right, subtype_context, proper_subtype=True)
+ File "/subtypes.py", line 382, in _is_subtype
+ return left.accept(SubtypeVisitor(orig_right, subtype_context, proper_subtype))
+ ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
... (truncated 3277 lines) ...
xarray (https://github.com/pydata/xarray)
+ xarray/structure/merge.py:536: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 2.4.0+dev.86c0e77e9b646a4b69797425482036ac38b7f917
+ xarray/structure/merge.py:536: note: use --pdb to drop into pdb
- xarray/namedarray/utils.py:23: error: Cannot find implementation or library stub for module named "dask.array.core" [import-not-found]
- xarray/namedarray/utils.py:24: error: Cannot find implementation or library stub for module named "dask.typing" [import-not-found]
- xarray/namedarray/utils.py:26: error: Unused "type: ignore[assignment, misc]" comment [unused-ignore]
- xarray/namedarray/utils.py: note: In function "module_available":
- xarray/namedarray/utils.py:57: error: Module has no attribute "util" [attr-defined]
- xarray/namedarray/utils.py: note: At top level:
- xarray/namedarray/utils.py:70: error: Cannot find implementation or library stub for module named "dask.base" [import-not-found]
- xarray/namedarray/utils.py: note: In function "is_dask_collection":
- xarray/namedarray/utils.py:74: error: Returning Any from function declared to return "bool" [no-any-return]
- xarray/plot/accessor.py:13: error: Cannot find implementation or library stub for module named "matplotlib.axes" [import-not-found]
- xarray/plot/accessor.py:14: error: Cannot find implementation or library stub for module named "matplotlib.collections" [import-not-found]
- xarray/plot/accessor.py:15: error: Cannot find implementation or library stub for module named "matplotlib.colors" [import-not-found]
- xarray/plot/accessor.py:16: error: Cannot find implementation or library stub for module named "matplotlib.container" [import-not-found]
- xarray/plot/accessor.py:17: error: Cannot find implementation or library stub for module named "matplotlib.contour" [import-not-found]
- xarray/plot/accessor.py:18: error: Cannot find implementation or library stub for module named "matplotlib.image" [import-not-found]
- xarray/plot/accessor.py:19: error: Cannot find implementation or library stub for module named "matplotlib.patches" [import-not-found]
- xarray/plot/accessor.py:20: error: Cannot find implementation or library stub for module named "matplotlib.quiver" [import-not-found]
- xarray/core/utils.py:117: error: Unused "type: ignore" comment [unused-ignore]
- xarray/core/types.py:48: error: Cannot find implementation or library stub for module named "dask.array" [import-not-found]
- xarray/core/options.py:11: error: Cannot find implementation or library stub for module named "matplotlib.colors" [import-not-found]
- xarray/backends/locks.py:130: error: Cannot find implementation or library stub for module named "dask.distributed" [import-not-found]
- xarray/backends/locks.py:149: error: Cannot find implementation or library stub for module named "dask" [import-not-found]
- xarray/backends/locks.py:150: error: Cannot find implementation or library stub for module named "dask.base" [import-not-found]
- xarray/util/deprecation_helpers.py:184: error: Cannot find implementation or library stub for module named "dask.base" [import-not-found]
- xarray/compat/dask_array_compat.py:23: error: Cannot find implementation or library stub for module named "dask.array" [import-not-found]
- xarray/compat/dask_array_compat.py:52: error: Cannot find implementation or library stub for module named "dask.array.lib.stride_tricks" [import-not-found]
- xarray/core/indexing.py:1870: error: Cannot find implementation or library stub for module named "dask.array" [import-not-found]
- xarray/core/indexing.py:1870: error: Cannot find implementation or library stub for module named "dask" [import-not-found]
- xarray/namedarray/daskmanager.py:21: error: Cannot find implementation or library stub for module named "dask.array" [import-not-found]
- xarray/namedarray/daskmanager.py:55: error: Cannot find implementation or library stub for module named "dask.array.core" [import-not-found]
- xarray/namedarray/daskmanager.py:63: error: Unused "type: ignore" comment [unused-ignore]
- xarray/namedarray/daskmanager.py:68: error: Cannot find implementation or library stub for module named "dask" [import-not-found]
- xarray/namedarray/daskmanager.py:81: error: Unused "type: ignore" comment [unused-ignore]
- xarray/namedarray/daskmanager.py:88: error: Unused "type: ignore[no-untyped-call]" comment [unused-ignore]
- xarray/namedarray/daskmanager.py:93: error: Unused "type: ignore[no-untyped-call]" comment [unused-ignore]
- xarray/namedarray/daskmanager.py:121: error: Unused "type: ignore" comment [unused-ignore]
- xarray/namedarray/daskmanager.py:133: error: Cannot find implementation or library stub for module named "dask.array.reductions" [import-not-found]
- xarray/namedarray/daskmanager.py:143: error: Unused "type: ignore" comment [unused-ignore]
- xarray/namedarray/daskmanager.py:160: error: Cannot find implementation or library stub for module named "dask.array.gufunc" [import-not-found]
- xarray/namedarray/daskmanager.py:175: error: Unused "type: ignore" comment [unused-ignore]
- xarray/namedarray/daskmanager.py:198: error: Unused "type: ignore" comment [unused-ignore]
- xarray/namedarray/daskmanager.py:231: error: Unused "type: ignore" comment [unused-ignore]
- xarray/namedarray/daskmanager.py:240: error: Unused "type: ignore[no-untyped-call]" comment [unused-ignore]
- xarray/namedarray/daskmanager.py:273: error: Cannot find implementation or library stub for module named "dask.utils" [import-not-found]
- xarray/namedarray/daskmanager.py: note: In member "get_auto_chunk_size" of class "DaskManager":
- xarray/namedarray/daskmanager.py:275: error: Returning Any from function declared to return "int" [no-any-return]
- xarray/namedarray/core.py:74: error: Cannot find implementation or library stub for module named "dask.typing" [import-not-found]
- xarray/namedarray/core.py:592: error: Cannot find implementation or library stub for module named "dask.base" [import-not-found]
- xarray/namedarray/core.py:606: error: Cannot find implementation or library stub for module named "dask._expr" [import-not-found]
- xarray/namedarray/core.py: note: In member "__dask_layers__" of class "NamedArray":
- xarray/namedarray/core.py:623: error: Returning Any from function declared to return "Sequence[str]" [no-any-return]
- xarray/namedarray/core.py: note: At top level:
- xarray/namedarray/core.py:647: error: Unused "type: ignore" comment [unused-ignore]
- xarray/namedarray/core.py:663: error: Unused "type: ignore" comment [unused-ignore]
- xarray/core/duck_array_ops.py:344: error: Cannot find implementation or library stub for module named "dask.base" [import-not-found]
- xarray/plot/utils.py:40: error: Cannot find implementation or library stub for module named "matplotlib.axes" [import-not-found]
- xarray/plot/utils.py:41: error: Cannot find implementation or library stub for module named "matplotlib.colors" [import-not-found]
- xarray/plot/utils.py:42: error: Cannot find implementation or library stub for module named "matplotlib.ticker" [import-not-found]
- xarray/plot/utils.py:50: error: Cannot find implementation or library stub for module named "matplotlib.pyplot" [import-not-found]
- xarray/plot/utils.py:50: error: Cannot find implementation or library stub for module named "matplotlib" [import-not-found]
- xarray/plot/utils.py:1864: error: Cannot find implementation or library stub for module named "matplotlib.dates" [import-not-found]
- xarray/core/common.py: note: In member "squeeze" of class "DataWithCoords":
- xarray/core/common.py:460: error: Argument after ** must have string keys [arg-type]
- xarray/plot/facetgrid.py:28: error: Cannot find implementation or library stub for module named "matplotlib.axes" [import-not-found]
- xarray/plot/facetgrid.py:29: error: Cannot find implementation or library stub for module named "matplotlib.cm" [import-not-found]
- xarray/plot/facetgrid.py:30: error: Cannot find implementation or library stub for module named "matplotlib.colorbar" [import-not-found]
- xarray/plot/facetgrid.py:31: error: Cannot find implementation or library stub for module named "matplotlib.figure" [import-not-found]
- xarray/plot/facetgrid.py:32: error: Cannot find implementation or library stub for module named "matplotlib.legend" [import-not-found]
- xarray/plot/facetgrid.py:33: error: Cannot find implementation or library stub for module named "matplotlib.quiver" [import-not-found]
- xarray/plot/facetgrid.py:34: error: Cannot find implementation or library stub for module named "matplotlib.text" [import-not-found]
- xarray/plot/facetgrid.py:194: error: Cannot find implementation or library stub for module named "matplotlib.pyplot" [import-not-found]
- xarray/plot/facetgrid.py:194: error: Cannot find implementation or library stub for module named "matplotlib" [import-not-found]
- xarray/plot/facetgrid.py:1007: error: Cannot find implementation or library stub for module named "matplotlib.ticker" [import-not-found]
- xarray/core/variable.py:73: error: Unused "type: ignore" comment [unused-ignore]
- xarray/core/variable.py:2781: error: Cannot find implementation or library stub for module named "dask.base" [import-not-found]
- xarray/structure/chunks.py:93: error: Cannot find implementation or library stub for module named "dask.base" [import-not-found]
- xarray/computation/computation.py: note: In function "_cov_corr":
- xarray/computation/computation.py:302: error: Redundant cast to "T_DataArray" [redundant-cast]
- xarray/core/coordinates.py: note: In member "to_index" of class "AbstractCoordinates":
- xarray/core/coordinates.py:175: error: Need type annotation for "level_list" (hint: "level_list: list[<type>] = ...") [var-annotated]
- xarray/core/coordinates.py:176: error: Need type annotation for "names" (hint: "names: list[<type>] = ...") [var-annotated]
- xarray/core/coordinates.py:185: error: Incompatible types in assignment (expression has type "list[Index[Any]]", variable has type "FrozenList[Index[Any]]") [assignment]
- xarray/core/dataset.py:2214: error: Unused "type: ignore" comment [unused-ignore]
- xarray/core/dataset.py: note: In member "pad" of class "Dataset":
- xarray/core/dataset.py:9280: error: Incompatible types in assignment (expression has type "Literal['constant']", variable has type "Literal['edge', 'reflect', 'symmetric', 'wrap']") [assignment]
- xarray/core/dataarray.py:4370: error: Unused "type: ignore" comment [unused-ignore]
- xarray/indexes/nd_point_index.py: note: In member "from_variables" of class "NDPointIndex":
- xarray/indexes/nd_point_index.py:271: error: Incompatible types in assignment (expression has type "type[ScipyKDTreeAdapter]", variable has type "type[T_TreeAdapter]") [assignment]
- xarray/backends/api.py:58: error: Unused "type: ignore[assignment, misc]" comment [unused-ignore]
- xarray/backends/writers.py: note: In function "get_default_netcdf_write_engine":
- xarray/backends/writers.py:206: error: Module has no attribute "util" [attr-defined]
- xarray/backends/writers.py: note: At top level:
- xarray/backends/scipy_.py:178: error: Unused "type: ignore" comment [unused-ignore]
- xarray/backends/scipy_.py:288: error: Unused "type: ignore" comment [unused-ignore]
- xarray/backends/scipy_.py:297: error: Unused "type: ignore" comment [unused-ignore]
- xarray/computation/weighted.py:185: error: Unused "type: ignore[call-arg, arg-type]" comment [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:18: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:22: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:26: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:34: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:42: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:46: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:60: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:83: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:87: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:91: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:100: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:104: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:113: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:117: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_deprecation_helpers.py:132: error: Unused "type: ignore" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_plot.py:1286: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_plot.py:1950: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_plot.py:3294: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_plot.py:3298: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_plot.py:3310: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_plot.py:3524: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_plot.py:3543: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_indexing.py: note: In member "test_lazily_indexed_array_setitem" of class "TestLazyArray":
- xarray/tests/test_indexing.py:544: error: Incompatible types in assignment (expression has type "OuterIndexer", variable has type "BasicIndexer") [assignment]
- xarray/tests/test_groupby.py:3062: error: Unused "type: ignore[misc]" comment, use narrower [call-arg] instead of [misc] code [unused-ignore]
- xarray/tests/test_duck_array_ops.py:70: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_duck_array_ops.py:76: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_dataset.py:5567: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_dataarray.py:1331: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_dataarray.py:1350: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_assertions.py:16: error: Unused "type: ignore[assignment, misc]" comment [unused-ignore]
- xarray/testing/strategies.py:366: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_variable.py:2825: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_variable.py:2830: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_variable.py:3235: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_variable.py:3240: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_strategies.py:110: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_strategies.py:113: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_strategies.py:116: error: Unused "type: ignore" comment [unused-ignore]
- xarray/tests/test_strategies.py:119: error: Unused "type: ignore" comment [unused-ignore]
- pyproject.toml: note: unused section(s): module = ['affine.*', 'cloudpickle.*', 'netcdftime.*', 'setuptools']
+ Traceback (most recent call last):
+ File "", line 6, in <module>
+ sys.exit(console_entry())
+ File "/__main__.py", line 16, in console_entry
+ main()
+ File "/main.py", line 167, in main
... (truncated 3624 lines) ...
freqtrade (https://github.com/freqtrade/freqtrade)
+ freqtrade/strategy/interface.py:1348: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 2.4.0+dev.86c0e77e9b646a4b69797425482036ac38b7f917
+ freqtrade/strategy/interface.py:1348: note: use --pdb to drop into pdb
- freqtrade/data/metrics.py:195: error: Incompatible types in assignment (expression has type "None", variable has type "Timestamp") [assignment]
- freqtrade/data/metrics.py:196: error: Incompatible types in assignment (expression has type "None", variable has type "Timestamp") [assignment]
- freqtrade/data/metrics.py:201: error: Incompatible types in assignment (expression has type "None", variable has type "Timestamp") [assignment]
- freqtrade/data/metrics.py:242: error: Unsupported operand types for + ("Hashable" and "int") [operator]
- freqtrade/data/metrics.py:243: error: Unsupported operand types for - ("Hashable" and "int") [operator]
- freqtrade/data/metrics.py:244: error: Unsupported operand types for - ("Hashable" and "int") [operator]
- freqtrade/data/metrics.py:251: error: Unsupported operand types for - ("Hashable" and "int") [operator]
- freqtrade/data/metrics.py:259: error: Argument "drawdown_abs" to "DrawDownResult" has incompatible type "Series[Any]"; expected "float" [arg-type]
- freqtrade/data/metrics.py:259: error: Invalid index type "tuple[Hashable, str]" for "_LocIndexerFrame[DataFrame]"; expected type "tuple[Expression, str | bytes | date | datetime | timedelta | <7 more items> | complex | integer[Any] | floating[Any] | complexfloating[Any, Any]]" [index]
- freqtrade/data/metrics.py:260: error: Argument "high_date" to "DrawDownResult" has incompatible type "str | bytes | date | datetime | timedelta | <7 more items> | complex | integer[Any] | floating[Any] | complexfloating[Any, Any]"; expected "Timestamp" [arg-type]
- freqtrade/data/metrics.py:261: error: Argument "low_date" to "DrawDownResult" has incompatible type "str | bytes | date | datetime | timedelta | <7 more items> | complex | integer[Any] | floating[Any] | complexfloating[Any, Any]"; expected "Timestamp" [arg-type]
- freqtrade/data/metrics.py:262: error: Argument "high_value" to "DrawDownResult" has incompatible type "str | bytes | date | datetime | timedelta | <7 more items> | complex | integer[Any] | floating[Any] | complexfloating[Any, Any]"; expected "float" [arg-type]
- freqtrade/data/metrics.py:263: error: Argument "low_value" to "DrawDownResult" has incompatible type "str | bytes | date | datetime | timedelta | <7 more items> | complex | integer[Any] | floating[Any] | complexfloating[Any, Any]"; expected "float" [arg-type]
- freqtrade/data/metrics.py:264: error: Argument "relative_account_drawdown" to "DrawDownResult" has incompatible type "str | bytes | date | datetime | timedelta | <7 more items> | complex | integer[Any] | floating[Any] | complexfloating[Any, Any]"; expected "float" [arg-type]
- freqtrade/data/metrics.py:266: error: Argument "current_high_date" to "DrawDownResult" has incompatible type "str | bytes | date | datetime | timedelta | <7 more items> | complex | integer[Any] | floating[Any] | complexfloating[Any, Any]"; expected "Timestamp" [arg-type]
- freqtrade/data/metrics.py:368: error: Incompatible return value type (got "DataFrame", expected "Series[Any]") [return-value]
- freqtrade/data/metrics.py:374: error: Incompatible types in assignment (expression has type "DataFrame", variable has type "Series[Any]") [assignment]
- freqtrade/data/converter/orderflow.py:98: error: Incompatible return value type (got "tuple[DataFrame, DataFrame | None]", expected "tuple[DataFrame, DataFrame]") [return-value]
- freqtrade/data/converter/orderflow.py:116: error: Incompatible types in assignment (expression has type "str | bytes | date | datetime | timedelta | <7 more items> | complex | integer[Any] | floating[Any] | complexfloating[Any, Any]", variable has type "datetime") [assignment]
- freqtrade/data/converter/orderflow.py:118: error: "bool" has no attribute "any" [attr-defined]
- freqtrade/data/converter/orderflow.py:130: error: Incompatible types in assignment (expression has type "list[dict[Hashable, Any]]", target has type "str | bytes | date | datetime | timedelta | <7 more items> | complex | integer[Any] | floating[Any] | complexfloating[Any, Any] | NAType | NaTType | None") [assignment]
- freqtrade/data/converter/orderflow.py:138: error: Incompatible types in assignment (expression has type "dict[Hashable, dict[Hashable, Any]]", target has type "str | bytes | date | datetime | timedelta | <7 more items> | complex | integer[Any] | floating[Any] | complexfloating[Any, Any] | NAType | NaTType | None") [assignment]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported left operand type for - ("str") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("str" and "timedelta") [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__rsub__" of "datetime64" matches argument type "str" [operator]
- freqtrade/data/converter/orderflow.py:172: note: Possible overload variants:
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, datetime64[Any], /) -> timedelta64[Any]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, int | integer[Any] | numpy.bool[builtins.bool], /) -> datetime64[Any]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, date, /) -> timedelta
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, datetime64[Any], /) -> timedelta64[None]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, datetime64[Any], /) -> timedelta64[int]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, datetime64[int], /) -> timedelta64[int]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, datetime64[date], /) -> timedelta64[timedelta]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, datetime64[None], /) -> timedelta64[None]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__rsub__" of "timedelta64" matches argument type "str" [operator]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, timedelta64[int | timedelta], /) -> timedelta64[Any]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, timedelta64[Any], /) -> timedelta64[None]
- freqtrade/data/converter/orderflow.py:172: note: def [AnyDateT: (datetime, date)] __rsub__(self, AnyDateT, /) -> AnyDateT
- freqtrade/data/converter/orderflow.py:172: note: def [AnyItemT: (timedelta, int, None)] __rsub__(self, timedelta64[AnyItemT], /) -> timedelta64[AnyItemT]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, timedelta64[Any], /) -> timedelta64[Any]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, int | integer[Any] | numpy.bool[builtins.bool], /) -> timedelta64[Any]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, timedelta64[None], /) -> timedelta64[None]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, datetime64[None], /) -> datetime64[None]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("str" and "bool") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("str" and "int") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("str" and "float") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("str" and "Timestamp") [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__rsub__" of "Timedelta" matches argument type "str" [operator]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, timedelta | timedelta64[Any] | Timedelta, /) -> Timedelta
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, datetime | Timestamp | datetime64[Any], /) -> Timestamp
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, NaTType, /) -> NaTType
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, Period, /) -> Period
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, PeriodIndex, /) -> PeriodIndex
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, DatetimeIndex, /) -> DatetimeIndex
- freqtrade/data/converter/orderflow.py:172: note: def [ShapeT: tuple[int, ...]] __rsub__(self, ndarray[ShapeT, dtype[datetime64[Any]]], /) -> ndarray[ShapeT, dtype[datetime64[Any]]]
- freqtrade/data/converter/orderflow.py:172: note: def [ShapeT: tuple[int, ...]] __rsub__(self, ndarray[ShapeT, dtype[timedelta64[Any]]], /) -> ndarray[ShapeT, dtype[timedelta64[Any]]]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, TimedeltaIndex, /) -> TimedeltaIndex
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("str" and "complex") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("str" and "integer[Any]") [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__rsub__" of "floating" matches argument type "str" [operator]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, int | floating[_16Bit] | unsignedinteger[_8Bit] | signedinteger[_8Bit] | numpy.bool[builtins.bool], /) -> floating[Any]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, integer[Any] | floating[Any], /) -> floating[Any]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, float, /) -> floating[Any]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, complex, /) -> complexfloating[Any, Any]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__rsub__" of "complexfloating" matches argument type "str" [operator]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, number[_32Bit, Any] | number[_16Bit, Any] | number[_8Bit, Any] | builtins.bool | numpy.bool[builtins.bool], /) -> complexfloating[Any, Any]
- freqtrade/data/converter/orderflow.py:172: note: def __rsub__(self, complex, /) -> complexfloating[Any, Any] | complex128
- freqtrade/data/converter/orderflow.py:172: note: def [NBitT: NBitBase] __rsub__(self, number[NBitT, Any], /) -> complexfloating[Any, Any] | complexfloating[NBitT, NBitT]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported left operand type for - ("bytes") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("bytes" and "timedelta") [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__rsub__" of "datetime64" matches argument type "bytes" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__rsub__" of "timedelta64" matches argument type "bytes" [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("bytes" and "bool") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("bytes" and "int") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("bytes" and "float") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("bytes" and "Timestamp") [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__rsub__" of "Timedelta" matches argument type "bytes" [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("bytes" and "complex") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("bytes" and "integer[Any]") [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__rsub__" of "floating" matches argument type "bytes" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__rsub__" of "complexfloating" matches argument type "bytes" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "date" matches argument type "str" [operator]
- freqtrade/data/converter/orderflow.py:172: note: def __sub__(self, datetime, /) -> Never
- freqtrade/data/converter/orderflow.py:172: note: def __sub__(self, date, /) -> timedelta
- freqtrade/data/converter/orderflow.py:172: note: def __sub__(self, timedelta, /) -> date
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "date" matches argument type "bytes" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "date" matches argument type "bool" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "date" matches argument type "int" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "date" matches argument type "float" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "date" matches argument type "complex" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "date" matches argument type "integer[Any]" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "date" matches argument type "floating[Any]" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "date" matches argument type "complexfloating[Any, Any]" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "datetime" matches argument type "str" [operator]
- freqtrade/data/converter/orderflow.py:172: note: def __sub__(self, datetime, /) -> timedelta
- freqtrade/data/converter/orderflow.py:172: note: def __sub__(self, timedelta, /) -> datetime
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "datetime" matches argument type "bytes" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "datetime" matches argument type "date" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "datetime" matches argument type "bool" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "datetime" matches argument type "int" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "datetime" matches argument type "float" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "datetime" matches argument type "complex" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "datetime" matches argument type "integer[Any]" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "datetime" matches argument type "floating[Any]" [operator]
- freqtrade/data/converter/orderflow.py:172: error: No overload variant of "__sub__" of "datetime" matches argument type "complexfloating[Any, Any]" [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("timedelta" and "str") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("timedelta" and "bytes") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("timedelta" and "date") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("timedelta" and "datetime") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("timedelta" and "datetime64[Any]") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("timedelta" and "timedelta64[Any]") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("timedelta" and "bool") [operator]
- freqtrade/data/converter/orderflow.py:172: error: Unsupported operand types for - ("timedelta" and "int") [operator]
... (truncated 4127 lines) ...
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.