- commit
- 7dd8d9fe2400826b75c89d99f76906ed1fb39938
- parent
- 8354eb612c411991fdc6a9546645bf469c9001ca
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-08-31 08:58
compat: avoid typing.Self only added in python 3.11
Diffstat
| M | nominaldelta.py | 4 | +++- |
1 files changed, 3 insertions, 1 deletions
diff --git a/nominaldelta.py b/nominaldelta.py
@@ -1,6 +1,8 @@ 1 1 from datetime import date 2 2 from datetime import datetime3 -1 from typing import Self-1 3 from typing import TypeVar -1 4 -1 5 Self = TypeVar('Self', bound='NominalDelta') 4 6 5 7 6 8 def date_to_timestamp(d):