Skip to content
Open
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/freeze-for-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Fetch merge branch
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/py-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand All @@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/resync-piped.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-licence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upgrade-locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ tests = [
"pytest-timeout>=2.1",
"pytest-xdist>=3.1",
# The pytest extensions aren't compatible with v8 yet.
"pytest==7.4.0",
"pytest==8.4.2",
]
type-checking = [
"mypy>=0.991",
Expand Down
4 changes: 2 additions & 2 deletions tests/commands/test_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_as_message_menu_with_defaults() -> None:
def test_as_message_menu_when_wrapping_command(
other_command: (
tanjun.SlashCommand[typing.Any] | tanjun.MessageCommand[typing.Any] | tanjun.MenuCommand[typing.Any, typing.Any]
)
),
) -> None:
command = tanjun.as_message_menu(
"c",
Expand Down Expand Up @@ -179,7 +179,7 @@ def test_as_user_menu_with_defaults() -> None:
def test_as_user_menu_when_wrapping_command(
other_command: (
tanjun.SlashCommand[typing.Any] | tanjun.MessageCommand[typing.Any] | tanjun.MenuCommand[typing.Any, typing.Any]
)
),
) -> None:
command = tanjun.as_user_menu(
"c",
Expand Down
4 changes: 2 additions & 2 deletions tests/commands/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_as_message_command() -> None:
def test_as_message_command_when_wrapping_command(
other_command: (
tanjun.SlashCommand[typing.Any] | tanjun.MessageCommand[typing.Any] | tanjun.MenuCommand[typing.Any, typing.Any]
)
),
) -> None:
command = tanjun.as_message_command("a", "b")(other_command)

Expand Down Expand Up @@ -118,7 +118,7 @@ def test_as_message_command_group() -> None:
def test_as_message_command_group_when_wrapping_command(
other_command: (
tanjun.SlashCommand[typing.Any] | tanjun.MessageCommand[typing.Any] | tanjun.MenuCommand[typing.Any, typing.Any]
)
),
) -> None:
command = tanjun.as_message_command_group("c", "b", strict=True)(other_command)

Expand Down
2 changes: 1 addition & 1 deletion tests/commands/test_slash.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_as_slash_command() -> None:
def test_as_slash_command_when_wrapping_command(
other_command: (
tanjun.SlashCommand[typing.Any] | tanjun.MessageCommand[typing.Any] | tanjun.MenuCommand[typing.Any, typing.Any]
)
),
) -> None:
command = tanjun.as_slash_command(
"a_very",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ class StubClient(tanjun.Client):

def test_with_listener_with_type_hint_typing_union(self) -> None:
async def callback(
event: typing.Union[hikari.RoleEvent, typing.Literal["ok"], hikari.GuildEvent, str] # noqa: PYI051
event: typing.Union[hikari.RoleEvent, typing.Literal["ok"], hikari.GuildEvent, str], # noqa: PYI051
) -> None: ...

add_listener_ = mock.Mock()
Expand All @@ -1351,7 +1351,7 @@ async def callback(
],
True,
"meow",
]
],
) -> None: ...

add_listener_ = mock.Mock()
Expand Down Expand Up @@ -1393,7 +1393,7 @@ def test_with_listener_with_type_hint_310_union_nested_annotated(self) -> None:
async def callback(
event: typing.Annotated[
typing.Annotated[hikari.BanEvent | hikari.GuildEvent, 123, 321] | hikari.InviteEvent, True, "meow"
]
],
) -> None: ...

add_listener_ = mock.Mock()
Expand Down
6 changes: 3 additions & 3 deletions tests/test_clients_future_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class StubClient(tanjun.Client):

def test_with_listener_with_type_hint_typing_union(self) -> None:
async def callback(
event: typing.Union[hikari.RoleEvent, typing.Literal["ok"], hikari.GuildEvent, str] # noqa: PYI051
event: typing.Union[hikari.RoleEvent, typing.Literal["ok"], hikari.GuildEvent, str], # noqa: PYI051
) -> None: ...

add_listener_ = mock.Mock()
Expand All @@ -158,7 +158,7 @@ async def callback(
],
True,
"meow",
]
],
) -> None: ...

add_listener_ = mock.Mock()
Expand Down Expand Up @@ -200,7 +200,7 @@ def test_with_listener_with_type_hint_310_union_nested_annotated(self) -> None:
async def callback(
event: typing.Annotated[
typing.Annotated[hikari.BanEvent | hikari.GuildEvent, 123, 321] | hikari.InviteEvent, True, "meow"
]
],
) -> None: ...

add_listener_ = mock.Mock()
Expand Down
6 changes: 3 additions & 3 deletions tests/test_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ async def callback(*event: hikari.BanEvent) -> None: ...

def test_with_listener_with_type_hint_typing_union(self) -> None:
async def callback(
event: typing.Union[hikari.RoleEvent, typing.Literal["ok"], hikari.GuildEvent, str] # noqa: PYI051
event: typing.Union[hikari.RoleEvent, typing.Literal["ok"], hikari.GuildEvent, str], # noqa: PYI051
) -> None: ...

add_listener = mock.Mock()
Expand All @@ -1337,7 +1337,7 @@ async def callback(
],
True,
"meow",
]
],
) -> None: ...

add_listener = mock.Mock()
Expand Down Expand Up @@ -1375,7 +1375,7 @@ def test_with_listener_with_type_hint_310_union_nested_annotated(self) -> None:
async def callback(
event: typing.Annotated[
typing.Annotated[hikari.BanEvent | hikari.GuildEvent, 123, 321] | hikari.InviteEvent, True, "meow"
]
],
) -> None: ...

add_listener = mock.Mock()
Expand Down
6 changes: 3 additions & 3 deletions tests/test_components_future_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def callback(*event: hikari.BanEvent) -> None: ...

def test_with_listener_with_type_hint_typing_union(self) -> None:
async def callback(
event: typing.Union[hikari.RoleEvent, typing.Literal["ok"], hikari.GuildEvent, str] # noqa: PYI051
event: typing.Union[hikari.RoleEvent, typing.Literal["ok"], hikari.GuildEvent, str], # noqa: PYI051
) -> None: ...

add_listener = mock.Mock()
Expand All @@ -145,7 +145,7 @@ async def callback(
],
True,
"meow",
]
],
) -> None: ...

add_listener = mock.Mock()
Expand Down Expand Up @@ -183,7 +183,7 @@ def test_with_listener_with_type_hint_310_union_nested_annotated(self) -> None:
async def callback(
event: typing.Annotated[
typing.Annotated[hikari.BanEvent | hikari.GuildEvent, 123, 321] | hikari.InviteEvent, True, "meow"
]
],
) -> None: ...

add_listener = mock.Mock()
Expand Down
Loading
Loading