We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05d4f76 commit 4ea22c7Copy full SHA for 4ea22c7
expected_mypy.txt
@@ -43,4 +43,5 @@ tryit.py:53: note: def timetz(self) -> Time[None]
43
tryit.py:53: note: Got:
44
tryit.py:53: note: def timetz(self) -> Time[timezone]
45
tryit.py:53: note: tzinfo: expected "None", got "timezone"
46
-Found 9 errors in 1 file (checked 1 source file)
+tryit.py:56: error: Incompatible types in assignment (expression has type "NaiveTime", variable has type "DateTime[timezone]") [assignment]
47
+Found 10 errors in 1 file (checked 1 source file)
tryit.py
@@ -52,3 +52,5 @@
52
53
not_naive: NaiveDateTime = a.astimezone()
54
is_aware: DateTime[timezone] = a.astimezone(None)
55
+
56
+not_aware_method_time: DateTime[timezone] = a.time() # nope; actually naive
0 commit comments