feat: add query for extracting switches sharing a connectivity node w… #1964
Triggered via pull request
September 10, 2024 12:14
Status
Success
Total duration
2m 19s
Artifacts
–
Annotations
20 errors and 3 warnings
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#L266
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#L269
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#L360
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#L371
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#L366
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#L112
Cannot access attribute "sparql_type" for class "tuple[Any, ...]"
Attribute "sparql_type" is unknown (reportAttributeAccessIssue)
|
ubuntu-latest / 3.12:
cimsparql/type_mapper.py#L112
Cannot access attribute "range" for class "tuple[Any, ...]"
Attribute "range" is unknown (reportAttributeAccessIssue)
|
ubuntu-latest / 3.12:
tests/test_graphdb.py#L91
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#L157
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.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#L266
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#L269
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#L360
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#L371
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#L366
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#L112
Cannot access attribute "sparql_type" for class "tuple[Any, ...]"
Attribute "sparql_type" is unknown (reportAttributeAccessIssue)
|
ubuntu-latest / 3.11:
cimsparql/type_mapper.py#L112
Cannot access attribute "range" for class "tuple[Any, ...]"
Attribute "range" is unknown (reportAttributeAccessIssue)
|
ubuntu-latest / 3.11:
tests/test_graphdb.py#L91
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#L157
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.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/
|
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/
|