Skip to content

Commit

Permalink
Merge pull request #37 from Avasam/Pass-mypy
Browse files Browse the repository at this point in the history
Pass mypy
  • Loading branch information
jaraco authored Aug 31, 2024
2 parents a4741d1 + ae8ac19 commit 6579e3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,3 @@ calc-prorate = "tempora:calculate_prorated_values"


[tool.setuptools_scm]


[tool.pytest-enabler.mypy]
# Disabled due to jaraco/skeleton#143
2 changes: 1 addition & 1 deletion tempora/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def ensure_datetime(ob: AnyDatetime) -> datetime.datetime:

def infer_datetime(ob: Union[AnyDatetime, StructDatetime]) -> datetime.datetime:
if isinstance(ob, (time.struct_time, tuple)):
ob = datetime.datetime(*ob[:6]) # type: ignore
ob = datetime.datetime(*ob[:6]) # type: ignore[arg-type]
return ensure_datetime(ob)


Expand Down

0 comments on commit 6579e3c

Please sign in to comment.