Skip to content

Commit

Permalink
dbm: fix error type (#6590)
Browse files Browse the repository at this point in the history
Surfaced by stubtest upgrade
  • Loading branch information
hauntsaninja authored Dec 16, 2021
1 parent 8687320 commit b345843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/dbm/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from _typeshed import Self
from types import TracebackType
from typing import Iterator, MutableMapping, Tuple, Type, Union
from typing import Iterator, MutableMapping, Type, Union
from typing_extensions import Literal

_KeyType = Union[str, bytes]
Expand Down Expand Up @@ -87,7 +87,7 @@ class _Database(MutableMapping[_KeyType, bytes]):

class _error(Exception): ...

error = Tuple[Type[_error], Type[OSError]]
error: tuple[Type[_error], Type[OSError]]

def whichdb(filename: str) -> str: ...
def open(file: str, flag: _TFlags = ..., mode: int = ...) -> _Database: ...

0 comments on commit b345843

Please sign in to comment.