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
30 changes: 15 additions & 15 deletions bot/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,23 +500,23 @@ async def convert(self, ctx: Context, arg: str) -> dict | None:


if t.TYPE_CHECKING:
ValidDiscordServerInvite = dict # noqa: F811
ValidDiscordServerInvite = dict
ValidFilterListType = str
Extension = str # noqa: F811
PackageName = str # noqa: F811
ValidURL = str # noqa: F811
Inventory = tuple[str, _inventory_parser.InventoryDict] # noqa: F811
Snowflake = int # noqa: F811
SourceConverter = SourceType # noqa: F811
Extension = str
PackageName = str
ValidURL = str
Inventory = tuple[str, _inventory_parser.InventoryDict]
Snowflake = int
SourceConverter = SourceType
DurationDelta = relativedelta
Duration = datetime # noqa: F811
Age = datetime # noqa: F811
OffTopicName = str # noqa: F811
ISODateTime = datetime # noqa: F811
HushDurationConverter = int # noqa: F811
UnambiguousUser = discord.User # noqa: F811
UnambiguousMember = discord.Member # noqa: F811
Infraction = dict | None # noqa: F811
Duration = datetime
Age = datetime
OffTopicName = str
ISODateTime = datetime
HushDurationConverter = int
UnambiguousUser = discord.User
UnambiguousMember = discord.Member
Infraction = dict | None

Expiry = Duration | ISODateTime
DurationOrExpiry = DurationDelta | ISODateTime
Expand Down
4 changes: 2 additions & 2 deletions bot/exts/moderation/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ async def convert(self, ctx: Context, argument: str) -> re.Pattern:


if TYPE_CHECKING: # Used to allow method resolution in IDEs like in converters.py.
CleanChannels = Literal["*"] | list[TextChannel] # noqa: F811
Regex = re.Pattern # noqa: F811
CleanChannels = Literal["*"] | list[TextChannel]
Regex = re.Pattern


class Clean(Cog):
Expand Down
38 changes: 19 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pytest = "7.4.4"
pytest-cov = "4.1.0"
pytest-subtests = "0.11.0"
pytest-xdist = "3.5.0"
ruff = "0.1.11"
ruff = "0.1.14"
taskipy = "1.12.2"


Expand Down