Skip to content

Commit

Permalink
fix typing fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomatree committed Jan 28, 2022
1 parent 7cf3fa3 commit b1a91ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion revolt/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self, data: ServerPayload, state: State):
self.default_channel_permissions = ChannelPermissions._from_value(data["default_permissions"][1])
self.description = data.get("description") or None
self.nsfw = data.get("nsfw", False)
self.system_messages = SystemMessages(data.get("system_messages", cast(SystemMessagesConfig, {})), state)
self.system_messages = SystemMessages(data.get("system_messages", cast("SystemMessagesConfig", {})), state)
self._categories = {data["id"]: Category(data, state) for data in data.get("categories", [])}

if icon := data.get("icon"):
Expand Down
2 changes: 1 addition & 1 deletion revolt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get(iterable: Iterable[T], **attrs: Any) -> T:
---------
.. code-block:: python
:emphasize-lines: 4
:emphasize-lines: 3
from revolt import utils
Expand Down

0 comments on commit b1a91ce

Please sign in to comment.