Skip to content

Commit

Permalink
Fix return type annotation on get_creation_date()
Browse files Browse the repository at this point in the history
`_DAVResource.get_creation_date()` is annotated as returning
`Optional[datetime]`, but `_DAVResources.get_property_value()` passes the
method's return value to `get_rfc3339_time()`, which requires a Unix timestamp
instead.
  • Loading branch information
jwodder committed Dec 13, 2023
1 parent 056831c commit f305182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsgidav/dav_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_content_type(self) -> Optional[str]:
return None
raise NotImplementedError

def get_creation_date(self) -> Optional[datetime]:
def get_creation_date(self) -> Optional[float]:
"""Records the time and date the resource was created.
The creationdate property should be defined on all DAV compliant
Expand Down

0 comments on commit f305182

Please sign in to comment.