mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 06:45:51 +08:00
dbm: fix bytes handling (#9030)
This commit is contained in:
1 parent
39936cd18a
commit
3e46f9a9ee
4 files changed
+12
-9
No files matched your search
@@ -10,6 +10,9 @@ _ValueType: TypeAlias = str | bytes
|
||||
|
||||
error = OSError
|
||||
|
||||
# This class doesn't exist at runtime. open() can return an instance of
|
||||
# any of the three implementations of dbm (dumb, gnu, ndbm), and this
|
||||
# class is intended to represent the common interface supported by all three.
|
||||
class _Database(MutableMapping[_KeyType, bytes]):
|
||||
def __init__(self, filebasename: str, mode: str, flag: str = ...) -> None: ...
|
||||
def sync(self) -> None: ...
|
||||
|
||||
Reference in new issue
Block a user