-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Description
I am working on feature where reveal_type(1 + 2) will reveal Literal[3].
Types that I want to support:
intstrbool
And these operations:
_SUPPORTED_LITERAL_OPERATIONS: Final = {
int: ('+', '-', '*', '//'), # `/` returns `float`
str: ('+',),
bool: ('and', 'or'),
}So, True or False is revealed as Literal[True].
I will finish some test later today and send a PR in the morning.
erictraut, griels and finite-state-machineAlexWaygood and grielsA5rocks and griels
