Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
sydp committed Nov 4, 2024
1 parent 94ee016 commit 0b77647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfindexeddb/leveldb/descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def GetVersions(self) -> Generator[LevelDBVersion, None, None]:
version_edit_offset=version_edit.offset,
last_sequence=version_edit.last_sequence)

def GetLatestVersion(self) -> LevelDBVersion:
def GetLatestVersion(self) -> Optional[LevelDBVersion]:
"""Returns the latest LevelDBVersion instance."""
latest = None
for version in self.GetVersions():
Expand Down

0 comments on commit 0b77647

Please sign in to comment.