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 requirements/tools.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mypy<=1.19.1;
mypy<=2.1.0;
# while flake8 5.x have issues with Python 3.12, flake8 6.x requires Python >= 3.8.1,
# so 5.x should be kept in order to stay compatible with Python 3.7/3.8
flake8>=7.3.0,<8
Expand Down
2 changes: 1 addition & 1 deletion slack_sdk/models/blocks/block_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def parse(cls, block_element: Union[dict, "BlockElement"]) -> Optional[Union["Bl
d = copy.copy(block_element)
t = d.pop("type")
for subclass in cls._get_sub_block_elements():
if t == subclass.type:
if t == getattr(subclass, "type", None):
return subclass(**d)
if t == PlainTextObject.type:
return PlainTextObject(**d)
Expand Down
2 changes: 1 addition & 1 deletion slack_sdk/socket_mode/aiohttp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ async def receive_messages(self) -> None:
self.logger.debug(
f"Received message "
f"(type: {message_type}, "
f"data: {message_data}, "
f"data: {repr(message_data)}, "
f"extra: {message.extra}, "
f"session: {session_id})"
)
Expand Down