feat: extract more switch types #1968
Annotations
20 errors and 3 warnings
ubuntu-latest / 3.11:
cimsparql/data_models.py#L10
"Config" overrides symbol of same name in class "DataFrameModel"
"type[Config]" is incompatible with "type[BaseConfig]"
Type "type[Config]" is incompatible with type "type[BaseConfig]" (reportIncompatibleVariableOverride)
|
ubuntu-latest / 3.11:
cimsparql/graphdb.py#L257
Argument of type "list[str]" cannot be assigned to parameter "columns" of type "Axes | None" in function "__init__"
Type "list[str]" is incompatible with type "Axes | None"
"list[str]" is incompatible with "ExtensionArray"
"list[str]" is incompatible with "ndarray[Unknown, Unknown]"
"list[str]" is incompatible with "Index"
"list[str]" is incompatible with "Series"
"list[str]" is incompatible with protocol "SequenceNotStr[Unknown]"
"index" is an incompatible type
Type "(value: str, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int" is incompatible with type "(value: Any, /, start: int = 0, stop: int = ...) -> int"
... (reportArgumentType)
|
ubuntu-latest / 3.11:
cimsparql/graphdb.py#L259
Argument of type "list[str]" cannot be assigned to parameter "columns" of type "Axes | None" in function "__init__"
Type "list[str]" is incompatible with type "Axes | None"
"list[str]" is incompatible with "ExtensionArray"
"list[str]" is incompatible with "ndarray[Unknown, Unknown]"
"list[str]" is incompatible with "Index"
"list[str]" is incompatible with "Series"
"list[str]" is incompatible with protocol "SequenceNotStr[Unknown]"
"index" is an incompatible type
Type "(value: str, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int" is incompatible with type "(value: Any, /, start: int = 0, stop: int = ...) -> int"
... (reportArgumentType)
|
ubuntu-latest / 3.11:
cimsparql/graphdb.py#L345
Argument of type "(self: Self@GraphDBClient, prefix: str, value: str) -> None" cannot be assigned to parameter "f" of type "(GraphDBClient, **P@require_rdf4j) -> T@require_rdf4j" in function "require_rdf4j"
Type "(self: Self@GraphDBClient, prefix: str, value: str) -> None" is incompatible with type "(GraphDBClient, **P@require_rdf4j) -> T@require_rdf4j"
Parameter 1: type "GraphDBClient" is incompatible with type "Self@GraphDBClient"
Type "GraphDBClient" is incompatible with type "Self@GraphDBClient" (reportArgumentType)
|
ubuntu-latest / 3.11:
cimsparql/graphdb.py#L356
Argument of type "(self: Self@GraphDBClient, prefix: str) -> str" cannot be assigned to parameter "f" of type "(GraphDBClient, **P@require_rdf4j) -> T@require_rdf4j" in function "require_rdf4j"
Type "(self: Self@GraphDBClient, prefix: str) -> str" is incompatible with type "(GraphDBClient, **P@require_rdf4j) -> T@require_rdf4j"
Parameter 1: type "GraphDBClient" is incompatible with type "Self@GraphDBClient"
Type "GraphDBClient" is incompatible with type "Self@GraphDBClient" (reportArgumentType)
|
ubuntu-latest / 3.11:
cimsparql/model.py#L355
Argument of type "list[str]" cannot be assigned to parameter "columns" of type "Axes | None" in function "__init__"
Type "list[str]" is incompatible with type "Axes | None"
"list[str]" is incompatible with "ExtensionArray"
"list[str]" is incompatible with "ndarray[Unknown, Unknown]"
"list[str]" is incompatible with "Index"
"list[str]" is incompatible with "Series"
"list[str]" is incompatible with protocol "SequenceNotStr[Unknown]"
"index" is an incompatible type
Type "(value: str, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int" is incompatible with type "(value: Any, /, start: int = 0, stop: int = ...) -> int"
... (reportArgumentType)
|
ubuntu-latest / 3.11:
cimsparql/type_mapper.py#L111
Cannot access attribute "sparql_type" for class "tuple[Any, ...]"
Attribute "sparql_type" is unknown (reportAttributeAccessIssue)
|
ubuntu-latest / 3.11:
cimsparql/type_mapper.py#L111
Cannot access attribute "range" for class "tuple[Any, ...]"
Attribute "range" is unknown (reportAttributeAccessIssue)
|
ubuntu-latest / 3.11:
tests/test_graphdb.py#L90
Argument of type "*tuple[((region: str | None = None, rate: str | None = None) -> AcLinesDataFrame) | (() -> AssociatedSwitchesDataFrame) | (() -> BaseVoltageDataFrame) | ((region: str | None = None) -> BordersDataFrame) | ((region: str | None = None) -> BusDataFrame) | ((region: str | None = None) -> ConnectionsDataFrame) | ((region: str | None = None) -> ConnectivityNodeDataFrame) | ((region: str | None = None) -> ConvertersDataFrame) | (() -> CoordinatesDataFrame) | ((region: str | None = None) -> DcActiveFlowDataFrame) | (() -> DisconnectedDataFrame) | ((region: str | None = None) -> ExchangeDataFrame) | (() -> FullModelDataFrame) | (() -> HVDCBidzonesDataFrame) | ((region: str | None = None) -> LoadsDataFrame) | (() -> MarketDatesDataFrame) | (() -> PhaseTapChangerDataFrame) | (() -> PowerFlowDataFrame) | (() -> RegionsDataFrame) | ((region: str | None = None, rate: str | None = None) -> BranchComponentDataFrame) | (() -> StationGroupCodeNameDataFrame) | (() -> SubstationVoltageDataFrame) | (() -> SvPowerDeviationDataFrame) | (() -> SwitchesDataFrame) | ((region: str | None = None) -> SynchronousMachinesDataFrame) | ((region: str | None = None, rate: str | None = None) -> TransformerWindingDataFrame) | (() -> TransformerWindingsDataFrame) | ((region: str | None = None, rate: str | None = None) -> TransformersDataFrame) | ((region: str | None = None) -> TransfConToConverterDataFrame) | ((region: str | None = None) -> WindGeneratingUnitsDataFrame), *tuple[Any, ...]]" cannot be assigned to parameter "args" of type "*_Ts@run_in_executor" in function "run_in_executor"
Type "*tuple[((region: str | None = None, rate: str | None = None) -> AcLinesDataFrame) | (() -> AssociatedSwitchesDataFrame) | (() -> BaseVoltageDataFrame) | ((region: str | None = None) -> BordersDataFrame) | ((region: str | None = None) -> BusDataFrame) | ((region: str | None = None) -> ConnectionsDataFrame) | ((region: str | None = None) -> ConnectivityNodeDataFrame) | ((region: str | None = None) -> ConvertersDataFrame) | (() -> CoordinatesDataFrame) | ((region: str | None = None) -> DcActiveFlowDataFrame) | (() -> DisconnectedDataFrame) | ((region: str | None = None) -> ExchangeDataFrame) | (() -> FullModelDataFrame) | (() -> HVDCBidzonesDataFrame) | ((region: str | None = None) -> LoadsDataFrame) | (() -> MarketDatesDataFrame) | (() -> PhaseTapChangerDataFrame) | (() -> PowerFlowDataFrame) | (() -> RegionsDataFrame) | ((region: str | None = None, rate: str | None = None) -> BranchComponentDataFrame) | (() -> StationGroupCodeNameDataFrame) | (() -> SubstationVoltageDataFrame) | (() -> SvPowerDeviationDataFrame) | (() -> SwitchesDataFrame) | ((region: str | None = None) -> SynchronousMachinesDataFrame) | ((region: str | None = None, rate: str | None = None) -> TransformerWindingDataFrame) | (() -> TransformerWindingsDataFrame) | ((region: str | None = None, rate: str | None = None) -> TransformersDataFrame) | ((region: str | None = None) -> TransfConToConverterDataFrame) | ((region: str | None = None) -> WindGeneratingUnitsDataFrame), *tuple[Any, ...]]" is incompatible with type "*tuple[(Any) -> DataFrame, *tuple[Any, ...]]"
"*tuple[((region: str | None = None, rate: str | None = None) -> AcLinesDataFrame) | (() -> AssociatedSwitchesDataFrame) | (() -> BaseVoltageDataFrame) | ((region: str | None = None) -> BordersDataFrame) | ((region: str | None = None) -> BusDataFrame) | ((region: str | None = None) -> ConnectionsDataFrame) | ((region: str | None = None) -> ConnectivityNodeDataFrame) | ((region: str | None = None) -> ConvertersDataFrame) | (() -> CoordinatesDataFrame) | ((region: str | None = None) -> DcActiveFlowDataFrame) | (() -> DisconnectedDataFrame) | ((region: str | None = None) -> ExchangeDataFrame) | (() -> FullModelDataFrame) | (() -> HVDCBidzonesDataFrame) | ((region: str | None = None) -> LoadsDataFrame) | (() -> MarketDatesDataFrame) | (() -> PhaseTapChangerDataFrame) | (() -> PowerFlowDataFrame) | (() -> RegionsDataFrame) | ((region: str | None = None, rate: str | None = None) -> BranchComponentDataFrame) | (() -> StationGroupCod
|
ubuntu-latest / 3.11:
tests/test_graphdb.py#L154
Argument of type "list[dict[str, int]]" cannot be assigned to parameter "rows" of type "list[dict[str, SparqlResultValue]]" in function "data_row"
"list[dict[str, int]]" is incompatible with "list[dict[str, SparqlResultValue]]"
Type parameter "_T@list" is invariant, but "dict[str, int]" is not the same as "dict[str, SparqlResultValue]"
Consider switching from "list" to "Sequence" which is covariant (reportArgumentType)
|
ubuntu-latest / 3.12:
cimsparql/data_models.py#L10
"Config" overrides symbol of same name in class "DataFrameModel"
"type[Config]" is incompatible with "type[BaseConfig]"
Type "type[Config]" is incompatible with type "type[BaseConfig]" (reportIncompatibleVariableOverride)
|
ubuntu-latest / 3.12:
cimsparql/graphdb.py#L257
Argument of type "list[str]" cannot be assigned to parameter "columns" of type "Axes | None" in function "__init__"
Type "list[str]" is incompatible with type "Axes | None"
"list[str]" is incompatible with "ExtensionArray"
"list[str]" is incompatible with "ndarray[Unknown, Unknown]"
"list[str]" is incompatible with "Index"
"list[str]" is incompatible with "Series"
"list[str]" is incompatible with protocol "SequenceNotStr[Unknown]"
"index" is an incompatible type
Type "(value: str, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int" is incompatible with type "(value: Any, /, start: int = 0, stop: int = ...) -> int"
... (reportArgumentType)
|
ubuntu-latest / 3.12:
cimsparql/graphdb.py#L259
Argument of type "list[str]" cannot be assigned to parameter "columns" of type "Axes | None" in function "__init__"
Type "list[str]" is incompatible with type "Axes | None"
"list[str]" is incompatible with "ExtensionArray"
"list[str]" is incompatible with "ndarray[Unknown, Unknown]"
"list[str]" is incompatible with "Index"
"list[str]" is incompatible with "Series"
"list[str]" is incompatible with protocol "SequenceNotStr[Unknown]"
"index" is an incompatible type
Type "(value: str, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int" is incompatible with type "(value: Any, /, start: int = 0, stop: int = ...) -> int"
... (reportArgumentType)
|
ubuntu-latest / 3.12:
cimsparql/graphdb.py#L345
Argument of type "(self: Self@GraphDBClient, prefix: str, value: str) -> None" cannot be assigned to parameter "f" of type "(GraphDBClient, **P@require_rdf4j) -> T@require_rdf4j" in function "require_rdf4j"
Type "(self: Self@GraphDBClient, prefix: str, value: str) -> None" is incompatible with type "(GraphDBClient, **P@require_rdf4j) -> T@require_rdf4j"
Parameter 1: type "GraphDBClient" is incompatible with type "Self@GraphDBClient"
Type "GraphDBClient" is incompatible with type "Self@GraphDBClient" (reportArgumentType)
|
ubuntu-latest / 3.12:
cimsparql/graphdb.py#L356
Argument of type "(self: Self@GraphDBClient, prefix: str) -> str" cannot be assigned to parameter "f" of type "(GraphDBClient, **P@require_rdf4j) -> T@require_rdf4j" in function "require_rdf4j"
Type "(self: Self@GraphDBClient, prefix: str) -> str" is incompatible with type "(GraphDBClient, **P@require_rdf4j) -> T@require_rdf4j"
Parameter 1: type "GraphDBClient" is incompatible with type "Self@GraphDBClient"
Type "GraphDBClient" is incompatible with type "Self@GraphDBClient" (reportArgumentType)
|
ubuntu-latest / 3.12:
cimsparql/model.py#L355
Argument of type "list[str]" cannot be assigned to parameter "columns" of type "Axes | None" in function "__init__"
Type "list[str]" is incompatible with type "Axes | None"
"list[str]" is incompatible with "ExtensionArray"
"list[str]" is incompatible with "ndarray[Unknown, Unknown]"
"list[str]" is incompatible with "Index"
"list[str]" is incompatible with "Series"
"list[str]" is incompatible with protocol "SequenceNotStr[Unknown]"
"index" is an incompatible type
Type "(value: str, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int" is incompatible with type "(value: Any, /, start: int = 0, stop: int = ...) -> int"
... (reportArgumentType)
|
ubuntu-latest / 3.12:
cimsparql/type_mapper.py#L111
Cannot access attribute "sparql_type" for class "tuple[Any, ...]"
Attribute "sparql_type" is unknown (reportAttributeAccessIssue)
|
ubuntu-latest / 3.12:
cimsparql/type_mapper.py#L111
Cannot access attribute "range" for class "tuple[Any, ...]"
Attribute "range" is unknown (reportAttributeAccessIssue)
|
ubuntu-latest / 3.12:
tests/test_graphdb.py#L90
Argument of type "*tuple[((region: str | None = None, rate: str | None = None) -> AcLinesDataFrame) | (() -> AssociatedSwitchesDataFrame) | (() -> BaseVoltageDataFrame) | ((region: str | None = None) -> BordersDataFrame) | ((region: str | None = None) -> BusDataFrame) | ((region: str | None = None) -> ConnectionsDataFrame) | ((region: str | None = None) -> ConnectivityNodeDataFrame) | ((region: str | None = None) -> ConvertersDataFrame) | (() -> CoordinatesDataFrame) | ((region: str | None = None) -> DcActiveFlowDataFrame) | (() -> DisconnectedDataFrame) | ((region: str | None = None) -> ExchangeDataFrame) | (() -> FullModelDataFrame) | (() -> HVDCBidzonesDataFrame) | ((region: str | None = None) -> LoadsDataFrame) | (() -> MarketDatesDataFrame) | (() -> PhaseTapChangerDataFrame) | (() -> PowerFlowDataFrame) | (() -> RegionsDataFrame) | ((region: str | None = None, rate: str | None = None) -> BranchComponentDataFrame) | (() -> StationGroupCodeNameDataFrame) | (() -> SubstationVoltageDataFrame) | (() -> SvPowerDeviationDataFrame) | (() -> SwitchesDataFrame) | ((region: str | None = None) -> SynchronousMachinesDataFrame) | ((region: str | None = None, rate: str | None = None) -> TransformerWindingDataFrame) | (() -> TransformerWindingsDataFrame) | ((region: str | None = None, rate: str | None = None) -> TransformersDataFrame) | ((region: str | None = None) -> TransfConToConverterDataFrame) | ((region: str | None = None) -> WindGeneratingUnitsDataFrame), *tuple[Any, ...]]" cannot be assigned to parameter "args" of type "*_Ts@run_in_executor" in function "run_in_executor"
Type "*tuple[((region: str | None = None, rate: str | None = None) -> AcLinesDataFrame) | (() -> AssociatedSwitchesDataFrame) | (() -> BaseVoltageDataFrame) | ((region: str | None = None) -> BordersDataFrame) | ((region: str | None = None) -> BusDataFrame) | ((region: str | None = None) -> ConnectionsDataFrame) | ((region: str | None = None) -> ConnectivityNodeDataFrame) | ((region: str | None = None) -> ConvertersDataFrame) | (() -> CoordinatesDataFrame) | ((region: str | None = None) -> DcActiveFlowDataFrame) | (() -> DisconnectedDataFrame) | ((region: str | None = None) -> ExchangeDataFrame) | (() -> FullModelDataFrame) | (() -> HVDCBidzonesDataFrame) | ((region: str | None = None) -> LoadsDataFrame) | (() -> MarketDatesDataFrame) | (() -> PhaseTapChangerDataFrame) | (() -> PowerFlowDataFrame) | (() -> RegionsDataFrame) | ((region: str | None = None, rate: str | None = None) -> BranchComponentDataFrame) | (() -> StationGroupCodeNameDataFrame) | (() -> SubstationVoltageDataFrame) | (() -> SvPowerDeviationDataFrame) | (() -> SwitchesDataFrame) | ((region: str | None = None) -> SynchronousMachinesDataFrame) | ((region: str | None = None, rate: str | None = None) -> TransformerWindingDataFrame) | (() -> TransformerWindingsDataFrame) | ((region: str | None = None, rate: str | None = None) -> TransformersDataFrame) | ((region: str | None = None) -> TransfConToConverterDataFrame) | ((region: str | None = None) -> WindGeneratingUnitsDataFrame), *tuple[Any, ...]]" is incompatible with type "*tuple[(Any) -> DataFrame, *tuple[Any, ...]]"
"*tuple[((region: str | None = None, rate: str | None = None) -> AcLinesDataFrame) | (() -> AssociatedSwitchesDataFrame) | (() -> BaseVoltageDataFrame) | ((region: str | None = None) -> BordersDataFrame) | ((region: str | None = None) -> BusDataFrame) | ((region: str | None = None) -> ConnectionsDataFrame) | ((region: str | None = None) -> ConnectivityNodeDataFrame) | ((region: str | None = None) -> ConvertersDataFrame) | (() -> CoordinatesDataFrame) | ((region: str | None = None) -> DcActiveFlowDataFrame) | (() -> DisconnectedDataFrame) | ((region: str | None = None) -> ExchangeDataFrame) | (() -> FullModelDataFrame) | (() -> HVDCBidzonesDataFrame) | ((region: str | None = None) -> LoadsDataFrame) | (() -> MarketDatesDataFrame) | (() -> PhaseTapChangerDataFrame) | (() -> PowerFlowDataFrame) | (() -> RegionsDataFrame) | ((region: str | None = None, rate: str | None = None) -> BranchComponentDataFrame) | (() -> StationGroupCod
|
ubuntu-latest / 3.12:
tests/test_graphdb.py#L154
Argument of type "list[dict[str, int]]" cannot be assigned to parameter "rows" of type "list[dict[str, SparqlResultValue]]" in function "data_row"
"list[dict[str, int]]" is incompatible with "list[dict[str, SparqlResultValue]]"
Type parameter "_T@list" is invariant, but "dict[str, int]" is not the same as "dict[str, SparqlResultValue]"
Consider switching from "list" to "Sequence" which is covariant (reportArgumentType)
|
Linting
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
ubuntu-latest / 3.11
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
ubuntu-latest / 3.12
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|