Skip to content

Commit

Permalink
Fix formatting and typing
Browse files Browse the repository at this point in the history
  • Loading branch information
tandemdude committed Mar 4, 2023
1 parent a021558 commit d9221a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lightbulb/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,12 +599,12 @@ def load_extensions_from(
ext = str(ext_path.with_suffix("")).replace(os.sep, ".")
self.load_extensions(ext)

async def fetch_owner_ids(self) -> t.Sequence[hikari.SnowflakeishOr[int]]:
async def fetch_owner_ids(self) -> t.Sequence[hikari.Snowflakeish]:
"""
Fetch the bot's owner IDs, or return the given owner IDs on instantiation if provided.
Returns:
Sequence[SnowflakeishOr[:obj:`int`]]: The IDs of the bot's owners.
Sequence[Snowflakeish]: The IDs of the bot's owners.
"""
if self.owner_ids:
return self.owner_ids
Expand Down
7 changes: 6 additions & 1 deletion lightbulb/context/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,12 @@ async def _cleanup(timeout: t.Union[int, float], proxy_: ResponseProxy) -> None:
except hikari.NotFoundError:
pass

includes_ephemeral: t.Callable[[t.Union[hikari.MessageFlag, int],], bool] = (
includes_ephemeral: t.Callable[
[
t.Union[hikari.MessageFlag, int],
],
bool,
] = (
lambda flags: (hikari.MessageFlag.EPHEMERAL & flags) == hikari.MessageFlag.EPHEMERAL
)

Expand Down

0 comments on commit d9221a9

Please sign in to comment.