Skip to content

Commit

Permalink
update test data
Browse files Browse the repository at this point in the history
This commit was sponsored by Sergio Bost, Thomas Ballinger, Matt
Campbell, and my other patrons.  If you want to join them, you can
support my work at https://patreon.com/creatorglyph.
  • Loading branch information
glyph committed Nov 7, 2023
1 parent 01cd803 commit 0ff0749
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions expected_mypy.txt
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
tryit.py:21: error: Unsupported operand types for < ("NaiveDateTime" and "AwareDateTime") [operator]
tryit.py:21: note: Following member(s) of "AwareDateTime" have conflicts:
tryit.py:21: note: Expected:
tryit.py:21: note: def timetz(self) -> DateTime[None]
tryit.py:21: note: def timetz(self) -> Time[None]
tryit.py:21: note: Got:
tryit.py:21: note: def timetz(self) -> DateTime[tzinfo]
tryit.py:21: note: def timetz(self) -> Time[tzinfo]
tryit.py:21: note: tzinfo: expected "None", got "tzinfo"
tryit.py:23: error: Incompatible types in assignment (expression has type "AwareDateTime", variable has type "NaiveDateTime") [assignment]
tryit.py:23: note: Following member(s) of "AwareDateTime" have conflicts:
tryit.py:23: note: Expected:
tryit.py:23: note: def timetz(self) -> DateTime[None]
tryit.py:23: note: def timetz(self) -> Time[None]
tryit.py:23: note: Got:
tryit.py:23: note: def timetz(self) -> DateTime[tzinfo]
tryit.py:23: note: def timetz(self) -> Time[tzinfo]
tryit.py:23: note: tzinfo: expected "None", got "tzinfo"
tryit.py:26: error: Incompatible types in assignment (expression has type "NaiveDateTime", variable has type "AwareDateTime") [assignment]
tryit.py:26: note: Following member(s) of "NaiveDateTime" have conflicts:
tryit.py:26: note: Expected:
tryit.py:26: note: def timetz(self) -> DateTime[tzinfo]
tryit.py:26: note: def timetz(self) -> Time[tzinfo]
tryit.py:26: note: Got:
tryit.py:26: note: def timetz(self) -> DateTime[None]
tryit.py:26: note: def timetz(self) -> Time[None]
tryit.py:26: note: tzinfo: expected "tzinfo", got "None"
tryit.py:34: error: Incompatible types in assignment (expression has type "NaiveDateTime", variable has type "Date") [assignment]
tryit.py:35: error: Incompatible types in assignment (expression has type "AwareDateTime", variable has type "Date") [assignment]
tryit.py:45: error: Unsupported operand types for < ("NaiveDateTime" and "DateTime[tzinfo]") [operator]
tryit.py:45: note: Following member(s) of "DateTime[tzinfo]" have conflicts:
tryit.py:45: note: Expected:
tryit.py:45: note: def timetz(self) -> DateTime[None]
tryit.py:45: note: def timetz(self) -> Time[None]
tryit.py:45: note: Got:
tryit.py:45: note: def timetz(self) -> DateTime[tzinfo]
tryit.py:45: note: def timetz(self) -> Time[tzinfo]
tryit.py:45: note: tzinfo: expected "None", got "tzinfo"
tryit.py:46: error: Unsupported operand types for < ("AwareDateTime" and "DateTime[None]") [operator]
tryit.py:46: note: Following member(s) of "DateTime[None]" have conflicts:
tryit.py:46: note: Expected:
tryit.py:46: note: def timetz(self) -> DateTime[tzinfo]
tryit.py:46: note: def timetz(self) -> Time[tzinfo]
tryit.py:46: note: Got:
tryit.py:46: note: def timetz(self) -> DateTime[None]
tryit.py:46: note: def timetz(self) -> Time[None]
tryit.py:46: note: tzinfo: expected "tzinfo", got "None"
tryit.py:48: error: "tzinfo" has no attribute "key" [attr-defined]
tryit.py:53: error: Incompatible types in assignment (expression has type "DateTime[timezone]", variable has type "NaiveDateTime") [assignment]
tryit.py:53: note: Following member(s) of "DateTime[timezone]" have conflicts:
tryit.py:53: note: Expected:
tryit.py:53: note: def timetz(self) -> DateTime[None]
tryit.py:53: note: def timetz(self) -> Time[None]
tryit.py:53: note: Got:
tryit.py:53: note: def timetz(self) -> DateTime[timezone]
tryit.py:53: note: def timetz(self) -> Time[timezone]
tryit.py:53: note: tzinfo: expected "None", got "timezone"
Found 9 errors in 1 file (checked 1 source file)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "datetype"
version = "2023.11.7"
version = "2023.11.8"
description = "A type wrapper for the standard library `datetime` that supplies stricter checks, such as making 'datetime' not substitutable for 'date', and separating out Naive and Aware datetimes into separate, mutually-incompatible types."
readme = "README.md"
# Maybe we can support earlier versions, but I haven't tested yet so let's
Expand Down

0 comments on commit 0ff0749

Please sign in to comment.