Push remaining changes. #95
Annotations
10 errors and 4 warnings
Type Coverage and Linting @ 3.10:
src/beira/exts/snowball/snowball.py#L166
Cannot assign to attribute "hit_odds_input" for class "SnowballSettingsModal*"
Expression of type "TextInput[Self@SnowballSettingsModal]" cannot be assigned to attribute "hit_odds_input" of class "SnowballSettingsModal"
"discord.ui.text_input.TextInput" is incompatible with "discord.ui.text_input.TextInput"
Type parameter "V@TextInput" is covariant, but "Self@SnowballSettingsModal" is not a subtype of "Self@SnowballSettingsModal"
Type "Self@SnowballSettingsModal" is incompatible with type "Self@SnowballSettingsModal" (reportAttributeAccessIssue)
|
Type Coverage and Linting @ 3.10:
src/beira/exts/snowball/snowball.py#L172
Cannot assign to attribute "stock_cap_input" for class "SnowballSettingsModal*"
Expression of type "TextInput[Self@SnowballSettingsModal]" cannot be assigned to attribute "stock_cap_input" of class "SnowballSettingsModal"
"discord.ui.text_input.TextInput" is incompatible with "discord.ui.text_input.TextInput"
Type parameter "V@TextInput" is covariant, but "Self@SnowballSettingsModal" is not a subtype of "Self@SnowballSettingsModal"
Type "Self@SnowballSettingsModal" is incompatible with type "Self@SnowballSettingsModal" (reportAttributeAccessIssue)
|
Type Coverage and Linting @ 3.10:
src/beira/exts/snowball/snowball.py#L178
Cannot assign to attribute "transfer_cap_input" for class "SnowballSettingsModal*"
Expression of type "TextInput[Self@SnowballSettingsModal]" cannot be assigned to attribute "transfer_cap_input" of class "SnowballSettingsModal"
"discord.ui.text_input.TextInput" is incompatible with "discord.ui.text_input.TextInput"
Type parameter "V@TextInput" is covariant, but "Self@SnowballSettingsModal" is not a subtype of "Self@SnowballSettingsModal"
Type "Self@SnowballSettingsModal" is incompatible with type "Self@SnowballSettingsModal" (reportAttributeAccessIssue)
|
Type Coverage and Linting @ 3.10:
src/beira/exts/triggers/misc_triggers.py#L201
Argument of type "_SpecialForm" cannot be assigned to parameter "class_or_tuple" of type "_ClassInfo" in function "isinstance"
Type "_SpecialForm" is incompatible with type "_ClassInfo"
"_SpecialForm" is incompatible with "type"
"_SpecialForm" is incompatible with "UnionType"
"_SpecialForm" is incompatible with "tuple[_ClassInfo, ...]" (reportArgumentType)
|
Type Coverage and Linting @ 3.10:
src/beira/exts/triggers/misc_triggers.py#L207
Type of "message" is partially unknown
Type of "message" is "Message | Unknown" (reportUnknownVariableType)
|
Type Coverage and Linting @ 3.10:
src/beira/exts/triggers/misc_triggers.py#L207
Type of "fetch_message" is partially unknown
Type of "fetch_message" is "((id: int, /) -> Coroutine[Any, Any, Message]) | Unknown" (reportUnknownMemberType)
|
Type Coverage and Linting @ 3.10:
src/beira/exts/triggers/misc_triggers.py#L207
Cannot access attribute "fetch_message" for class "PrivateChannel"
Attribute "fetch_message" is unknown (reportAttributeAccessIssue)
|
Type Coverage and Linting @ 3.10:
src/beira/exts/triggers/misc_triggers.py#L219
Type of "author" is partially unknown
Type of "author" is "User | Member | Unknown" (reportUnknownMemberType)
|
Type Coverage and Linting @ 3.10:
src/beira/exts/triggers/misc_triggers.py#L219
Type of "mention" is partially unknown
Type of "mention" is "str | Unknown" (reportUnknownMemberType)
|
Type Coverage and Linting @ 3.10:
src/beira/exts/triggers/misc_triggers.py#L220
Type of "content" is partially unknown
Type of "content" is "str | Unknown" (reportUnknownMemberType)
|
Type Coverage and Linting @ 3.10
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4, actions/setup-node@v3, jakebailey/pyright-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Type Coverage and Linting @ 3.10:
src/beira/__init__.py#L1
Cycle detected in import chain
/home/runner/work/Beira/Beira/src/beira/__init__.py
/home/runner/work/Beira/Beira/src/beira/bot.py
/home/runner/work/Beira/Beira/src/beira/checks.py (reportImportCycles)
|
Type Coverage and Linting @ 3.10:
src/beira/__init__.py#L1
Cycle detected in import chain
/home/runner/work/Beira/Beira/src/beira/__init__.py
/home/runner/work/Beira/Beira/src/beira/checks.py (reportImportCycles)
|
Type Coverage and Linting @ 3.10:
src/beira/utils/embeds.py#L105
Unnecessary "# pyright: ignore" rule: "reportUnknownVariableType" (reportUnnecessaryTypeIgnoreComment)
|