dbm: fix bytes handling (#9030)

This commit is contained in:
Jelle Zijlstra
2022-11-01 10:10:37 +01:00
committed by GitHub
parent 39936cd18a
commit 3e46f9a9ee
4 changed files with 12 additions and 9 deletions
+3
View File
@@ -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: ...