Skip to content

Commit

Permalink
Update shelve.pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed May 11, 2024
1 parent 0d8bc67 commit b608d28
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions stdlib/shelve.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,14 @@ class BsdDbShelf(Shelf[_VT]):
def last(self) -> tuple[str, _VT]: ...

class DbfilenameShelf(Shelf[_VT]):
def __init__(
self, filename: StrOrBytesPath, flag: _TFlags = "c", protocol: int | None = None, writeback: bool = False
) -> None: ...
if sys.version_info >= (3, 11):
def __init__(
self, filename: StrOrBytesPath, flag: _TFlags = "c", protocol: int | None = None, writeback: bool = False
) -> None: ...
else:
def __init__(
self, filename: str, flag: _TFlags = "c", protocol: int | None = None, writeback: bool = False
) -> None: ...

if sys.version_info >= (3, 11):
def open(
Expand Down

0 comments on commit b608d28

Please sign in to comment.