From 2ce49ef644e931d5cd426c2feee730012efc057f Mon Sep 17 00:00:00 2001 From: christianknoepfle <98997149+christianknoepfle@users.noreply.github.com> Date: Thu, 6 Jun 2024 20:22:03 +0200 Subject: [PATCH] type information of SMBDirEntryInformation.last_write_time set to datetime (#280) * SMBDirEntryInformation.last_write_time is datetime now * SMBDirEntryInformation CHANGELOG * Update CHANGELOG.md Co-authored-by: Adi Roiban --------- Co-authored-by: Adi Roiban --- CHANGELOG.md | 1 + src/smbclient/_os.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ba9f7d..82c74f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.14.0 - TBD * Dropped support for Python 3.7 +* `SMBDirEntryInformation.last_write_time` is now annotated as `datetime.datetime`. Previously, it was `datetime.date`. https://github.com/jborean93/smbprotocol/issues/279 ## 1.13.0 - 2024-03-21 diff --git a/src/smbclient/_os.py b/src/smbclient/_os.py index b1f73f5..88917c6 100644 --- a/src/smbclient/_os.py +++ b/src/smbclient/_os.py @@ -1187,7 +1187,7 @@ def _set_basic_information( class SMBDirEntryInformation(t.NamedTuple): creation_time: datetime.datetime last_access_time: datetime.datetime - last_write_time: datetime.date + last_write_time: datetime.datetime change_time: datetime.datetime end_of_file: int allocation_size: int