Skip to content

Commit

Permalink
Merge pull request #231 from spyoungtech/mypy-fix
Browse files Browse the repository at this point in the history
exclude abstract base class from message registry
  • Loading branch information
spyoungtech committed Aug 22, 2023
2 parents 2f383cb + b5ac200 commit 7615f93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ repos:
- id: reorder-python-imports

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.4.1'
rev: 'v1.5.1'
hooks:
- id: mypy
args:
Expand Down
3 changes: 1 addition & 2 deletions ahk/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ def unpack(self) -> Any:
return NotImplemented


_message_registry: dict[bytes, 'ResponseMessageClassTypes']
_message_registry = {ResponseMessage._type_order_mark: ResponseMessage}
_message_registry: dict[bytes, 'ResponseMessageClassTypes'] = {}


class TupleResponseMessage(ResponseMessage):
Expand Down

0 comments on commit 7615f93

Please sign in to comment.