Better type annotations and stricter mypy checks (#3 ) #4

Merged
ok merged 6 commits from mypy_fixes into main 2023-08-16 13:01:27 +02:00
Collaborator

This PR includes various improvements for type annotations / mypy checks (fix for #3):

  • adds type hints for all existing function definitions
  • enforces type hints for future code by adding disallow_untyped_defs = True to mypy.ini
  • introduces new module configuration and new class Config (based on TypedDict), that replaces ConfType
  • introduces new class CmmTestCase as a unittest base class for CMM tests
This PR includes various improvements for type annotations / mypy checks (fix for #3): * adds type hints for all existing function definitions * enforces type hints for future code by adding `disallow_untyped_defs = True` to `mypy.ini` * introduces new module `configuration` and new class `Config` (based on `TypedDict`), that replaces `ConfType` * introduces new class `CmmTestCase` as a `unittest` base class for CMM tests
juk0de added 5 commits 2023-08-16 11:23:55 +02:00
juk0de self-assigned this 2023-08-16 11:26:52 +02:00
ok added 1 commit 2023-08-16 12:24:15 +02:00
ok merged commit 380b7c1b67 into main 2023-08-16 13:01:27 +02:00
ok deleted branch mypy_fixes 2023-08-16 13:01:27 +02:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kaizenkodo/ChatMastermind#4
No description provided.