This adds more accurate utils for generating a snowflake from datetime. #91

Open
JDJGInc wants to merge 18 commits from JDJGInc/2.0 into 2.0
Showing only changes of commit e9850566e8 - Show all commits

View File

@@ -953,8 +953,7 @@ def evaluate_annotation(
)
if is_literal and not all(isinstance(x, (str, int, bool, type(None))) for x in evaluated_args):
raise TypeError(
"Literal arguments must be of type str, int, bool, or NoneType.")
raise TypeError("Literal arguments must be of type str, int, bool, or NoneType.")
if evaluated_args == args:
return tp