Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
echo "GIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_STATE

- name: Push
uses: JamesIves/github-pages-deploy-action@62fec3add6773ec5dbbf18d2ee4260911aa35cf4
uses: JamesIves/github-pages-deploy-action@15de0f09300eea763baee31dff6c6184995c5f6a
with:
branch: docs
commit-message: "${{ steps.doc_info.outputs.GIT_HASH }} docs (${{ github.event.release.tag_name || github.event.ref }})"
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ ignore = [
"FIX002", # Line contains TODO, consider resolving the issue
"I001", # [*] Import block is un-sorted or un-formatted
"N818", # Exception name `FailedModuleUnload` should be named with an Error suffix
"PGH003", # Use specific rule codes when ignoring type issues
"PYI041", # Use `float` instead of `int | float`
"S101", # Use of `assert` detected
"SIM105", # Use `contextlib.suppress(Error)` instead of `try`-`except`-`pass`
Expand Down Expand Up @@ -164,7 +165,6 @@ ignore = [
"FBT002", # Boolean default positional argument in function definition
"FBT003", # Boolean positional value in function call
"PLR0915", # Too many statements
"PGH003", # Use specific rule codes when ignoring type issues
"PLR2004", # Magic value used in comparison, consider replacing `` with a constant variable
"SLF001", # Private member accessed: ``
]
Expand All @@ -191,13 +191,11 @@ ignore = [
]
"tests/test_components_future_annotations.py" = [
"B008", # Do not perform function call `` in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable
"PGH003", # Use specific rule codes when ignoring type issues
"PLW0603", # Using the global statement to update `` is discouraged
"UP007", # [*] Use `X | Y` for type annotations
]
"tests/test_components.py" = [
"B008", # Do not perform function call `` in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable
"PGH003", # Use specific rule codes when ignoring type issues
"UP007", # [*] Use `X | Y` for type annotations
]
"tests/test_schedules.py" = [
Expand Down
2 changes: 1 addition & 1 deletion tanjun/commands/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def __init__(
self._names = names
self._parent: tanjun.SlashCommandGroup | None = None
self._tracked_command: hikari.ContextMenuCommand | None = None
self._type: _MenuTypeT = type_ # MyPy bug causes this to need an explicit annotation.
self._type: _MenuTypeT = type_ # type: ignore
self._wrapped_command = _wrapped_command

if typing.TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion tanjun/dependencies/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def resolve(
if (value := constant.get_value()) is not None:
return value

result = await ctx.call_with_async_di(constant.callback) # type: ignore # noqa: PGH003
result = await ctx.call_with_async_di(constant.callback) # type: ignore
constant.set_value(result)
return result

Expand Down
Loading
Loading