-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Mypy found 2877 type error(s)/note(s) for commit 43fbb1c on branch renovate/critical-python-dependencies.
(Workflow Run: https://github.com/TanjunBot/new_tanjun/actions/runs/20360789147)
Checklist (displaying first 75 of 2877 items):
- commands/utility/brawlstars/bshelper.py:355: error: Invalid index type "str" for "dict[int, str]"; expected type "int" [index]
- commands/utility/brawlstars/bshelper.py:386: error: Invalid index type "str" for "dict[int, str]"; expected type "int" [index]
- config.py:10: error: Item "None" of "str | None" has no attribute "split" [union-attr]
- utility.py:275: error: Argument 1 to "from_dict" of "tanjunEmbed" has incompatible type "Embed"; expected "Mapping[str, Any]" [arg-type]
- utility.py:316: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object" [override]
- utility.py:316: note: This violates the Liskov substitution principle
- utility.py:316: note: See https://mypy.readthedocs.io/en/stable/common\_issues.html#incompatible-overrides
- utility.py:316: note: It is recommended for "__eq__" to work with arbitrary objects, for example:
- utility.py:316: note: def __eq__(self, other: object) -> bool:
- utility.py:316: note: if not isinstance(other, tanjunEmbed):
- utility.py:316: note: return NotImplemented
- utility.py:316: note: return <logic to compare two tanjunEmbed instances>
- utility.py:361: error: Incompatible types in assignment (expression has type "None", variable has type "datetime") [assignment]
- utility.py:793: error: Name "collections" is not defined [name-defined]
- utility.py:924: error: Incompatible return value type (got "None", expected "str") [return-value]
- utility.py:935: error: Argument 1 has incompatible type "str"; expected "MutableSequence[Any]" [arg-type]
- utility.py:935: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index]
- utility.py:937: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index]
- utility.py:1093: error: Incompatible default for argument "custom_formula" (default has type "None", argument has type "str") [assignment]
- utility.py:1093: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
- utility.py:1093: note: Use https://github.com/hauntsaninja/no\_implicit\_optional to automatically upgrade your codebase
- utility.py:1108: error: Incompatible default for argument "custom_formula" (default has type "None", argument has type "str") [assignment]
- utility.py:1108: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
- utility.py:1108: note: Use https://github.com/hauntsaninja/no\_implicit\_optional to automatically upgrade your codebase
- utility.py:1176: error: Incompatible return value type (got "float", expected "int") [return-value]
- utility.py:1236: error: Return type "Coroutine[Any, Any, str]" of "original_response" incompatible with return type "Coroutine[Any, Any, InteractionMessage]" in supertype "discord.interactions.Interaction" [override]
- utility.py:1237: error: "InteractionResponse[Client]" has no attribute "message" [attr-defined]
- utility.py:1319: error: Argument 1 to "BasicAuth" has incompatible type "str | None"; expected "str" [arg-type]
- utility.py:1319: error: Argument 2 to "BasicAuth" has incompatible type "str | None"; expected "str" [arg-type]
- utility.py:1322: error: Unsupported left operand type for + ("None") [operator]
- utility.py:1322: note: Left operand is of type "str | None"
- utility.py:1329: error: Incompatible return value type (got "None", expected "str") [return-value]
- utility.py:1332: error: Incompatible return value type (got "None", expected "str") [return-value]
- loops/create_database_backup.py:34: error: Argument 1 to "dump_database_schema" has incompatible type "str | None"; expected "str" [arg-type]
- loops/create_database_backup.py:34: error: Argument 2 to "dump_database_schema" has incompatible type "str | None"; expected "str" [arg-type]
- loops/create_database_backup.py:36: error: Incompatible types in assignment (expression has type "VoiceChannel | StageChannel | ForumChannel | TextChannel | CategoryChannel | Thread | PrivateChannel | None", variable has type "TextChannel") [assignment]
- localizer.py:6: error: Need type annotation for "reported_locales" (hint: "reported_locales: list[<type>] = ...") [var-annotated]
- localizer.py:13: error: Name "Any" is not defined [name-defined]
- localizer.py:13: note: Did you forget to import it from "typing"? (Suggestion: "from typing import Any")
- localizer.py:28: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index]
- localizer.py:32: error: Incompatible return value type (got "str | None", expected "str") [return-value]
- localizer.py:47: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index]
- api.py:4: error: Skipping analyzing "asyncmy": module is installed, but missing library stubs or py.typed marker [import-untyped]
- api.py:13: error: Function "builtins.any" is not valid as a type [valid-type]
- api.py:13: note: Perhaps you meant "typing.Any" instead of "any"?
- api.py:22: error: Name "Sequence" is not defined [name-defined]
- api.py:22: error: Name "Any" is not defined [name-defined]
- api.py:22: note: Did you forget to import it from "typing"? (Suggestion: "from typing import Any")
- api.py:22: error: Name "Dict" is not defined [name-defined]
- api.py:22: note: Did you forget to import it from "typing"? (Suggestion: "from typing import Dict")
- api.py:22: error: Name "List" is not defined [name-defined]
- api.py:22: note: Did you forget to import it from "typing"? (Suggestion: "from typing import List")
- api.py:22: error: Name "Tuple" is not defined [name-defined]
- api.py:22: note: Did you forget to import it from "typing"? (Suggestion: "from typing import Tuple")
- api.py:28: error: Return value expected [return-value]
- api.py:70: error: Return value expected [return-value]
- api.py:660: error: Name "datetime.datetime" is not defined [name-defined]
- api.py:667: error: Incompatible default for argument "user_id" (default has type "None", argument has type "str | int") [assignment]
- api.py:667: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
- api.py:667: note: Use https://github.com/hauntsaninja/no\_implicit\_optional to automatically upgrade your codebase
- api.py:667: error: Name "List" is not defined [name-defined]
- api.py:667: note: Did you forget to import it from "typing"? (Suggestion: "from typing import List")
- api.py:667: error: Name "Tuple" is not defined [name-defined]
- api.py:667: note: Did you forget to import it from "typing"? (Suggestion: "from typing import Tuple")
- api.py:667: error: Name "Any" is not defined [name-defined]
- api.py:667: note: Did you forget to import it from "typing"? (Suggestion: "from typing import Any")
- api.py:675: error: Incompatible types in assignment (expression has type "tuple[str | int]", variable has type "tuple[str | int, str | int]") [assignment]
- api.py:680: error: Name "List" is not defined [name-defined]
- api.py:680: note: Did you forget to import it from "typing"? (Suggestion: "from typing import List")
- api.py:680: error: Name "Tuple" is not defined [name-defined]
- api.py:680: note: Did you forget to import it from "typing"? (Suggestion: "from typing import Tuple")
- api.py:680: error: Name "Any" is not defined [name-defined]
- api.py:680: note: Did you forget to import it from "typing"? (Suggestion: "from typing import Any")
- api.py:688: error: Item "None" of "Any | None" has no attribute "__iter__" (not iterable) [union-attr]
- api.py:728: error: Name "List" is not defined [name-defined]
The full list of 2877 error(s)/note(s) is available in the artifact mypy-report-20360789147-43fbb1ce88d6563d4f7c26dbf00463f376828d66 attached to this workflow run.