Skip to content

replace Optional[T] with T | None everywhere #113

replace Optional[T] with T | None everywhere

replace Optional[T] with T | None everywhere #113

Triggered via push February 7, 2025 17:10
Status Failure
Total duration 29s
Artifacts

check.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 6 warnings
Check: github/connection/labelorder.py#L28
Type "Literal['NAME']" is not assignable to declared type "property"\n  "Literal['NAME']" is not assignable to "property"
Check: github/connection/referenceorder.py#L28
Type "Literal['ALPHABETICAL']" is not assignable to declared type "property"\n  "Literal['ALPHABETICAL']" is not assignable to "property"
Check: github/connection/repositoryorder.py#L28
Type "Literal['NAME']" is not assignable to declared type "property"\n  "Literal['NAME']" is not assignable to "property"
Check: github/connection/teamorder.py#L23
Type "Literal['NAME']" is not assignable to declared type "property"\n  "Literal['NAME']" is not assignable to "property"
Check: github/core/errors.py#L131
Argument of type "T_json_object" cannot be assigned to parameter "data" of type "dict[str, Any]" in function "__init__"\n  "Mapping[str, object]" is not assignable to "dict[str, Any]"
Check: github/core/http.py#L93
Argument of type "T_json_object" cannot be assigned to parameter "variables_" of type "dict[str, Any] | None" in function "request"\n  Type "T_json_object" is not assignable to type "dict[str, Any] | None"\n    "Mapping[str, object]" is not assignable to "dict[str, Any]"\n    "Mapping[str, object]" is not assignable to "None"
Check: github/core/http.py#L98
"core" is not a known attribute of module "github"
Check: github/core/http.py#L105
"core" is not a known attribute of module "github"
Check: github/core/http.py#L419
Argument of type "T_json_object" cannot be assigned to parameter "data" of type "dict[str, Any]" in function "__init__"\n  "Mapping[str, object]" is not assignable to "dict[str, Any]"
Check: github/core/http.py#L484
Argument of type "T_json_object" cannot be assigned to parameter "data" of type "dict[str, Any]" in function "__init__"\n  "Mapping[str, object]" is not assignable to "dict[str, Any]"
Check: github/content/codeofconduct.py#L239
Unnecessary "# type: ignore" comment
Check: github/content/codeofconduct.py#L317
Unnecessary "# type: ignore" comment
Check: github/content/codeofconduct.py#L343
Unnecessary "# type: ignore" comment
Check: github/content/license.py#L445
Unnecessary "# type: ignore" comment
Check: github/interfaces/labelable.py#L191
Unnecessary "# type: ignore" comment
Check: github/interfaces/labelable.py#L226
Unnecessary "# type: ignore" comment