-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure that the KW_ONLY sentinel is only provided once
https://docs.python.org/3.10/library/dataclasses.html#dataclasses.KW_ONLY In this section in the documentation it states: In a single dataclass, it is an error to specify more than one field whose type is KW_ONLY. This commit handles raising a mypy failure if this case is detected.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters