Values can be None

master
Salvo 'LtWorf' Tomaselli 2020-08-24 18:42:18 +07:00
parent 0920559a82
commit 177ca5a3ee
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 2 additions and 2 deletions

@ -23,7 +23,7 @@
import datetime
import keyword
import re
from typing import Union, Set, Any, Callable, Type
from typing import Union, Set, Any, Callable, Type, Optional
from dataclasses import dataclass
@ -31,7 +31,7 @@ RELATION_NAME_REGEXP = re.compile(r'^[_a-z][_a-z0-9]*$', re.IGNORECASE)
_date_regexp = re.compile(
r'^([0-9]{1,4})(\\|-|/)([0-9]{1,2})(\\|-|/)([0-9]{1,2})$'
)
CastValue = Union[str, int, float, 'Rdate']
CastValue = Optional[Union[str, int, float, 'Rdate']]
def guess_type(value: str) -> Set[Union[Callable[[Any], Any], Type['Rdate']]]: