Skip to content

Commit

Permalink
Add type information for DbClosedError
Browse files Browse the repository at this point in the history
  • Loading branch information
GodTamIt committed Nov 27, 2023
1 parent 2d01be7 commit 8e9afd9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/rocksdict/rocksdict.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ __all__ = ["Rdict",
"Snapshot",
"CompactOptions",
"BottommostLevelCompaction",
"KeyEncodingType"]
"KeyEncodingType",
"DbClosedError"]

class DataBlockIndexType:
@staticmethod
Expand Down Expand Up @@ -547,3 +548,6 @@ class KeyEncodingType:
def none() -> KeyEncodingType: ...
@staticmethod
def prefix() -> KeyEncodingType: ...

class DbClosedError(Exception):
"""Raised when accessing a closed database instance."""

0 comments on commit 8e9afd9

Please sign in to comment.