-
-
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.
is_singleton_type
: move business logic to type definitions (#13165)
This greatly reduces complexity as each type can determine for themselves if they are representing a singleton. `get_enum_values` has to be moved as well, as it is used by `get_singleton_type`. Relates-to: #13117 Co-authored-by: László Vaskó <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
17 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