mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Prefer to use ellipsis over pass (#2292)
This commit is contained in:
committed by
Jelle Zijlstra
parent
187aaaced9
commit
581705d9ee
@@ -184,12 +184,10 @@ class ConverterMapping(MutableMapping[str, Optional[_converter]]):
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
|
||||
class Error(Exception):
|
||||
pass
|
||||
class Error(Exception): ...
|
||||
|
||||
|
||||
class NoSectionError(Error):
|
||||
pass
|
||||
class NoSectionError(Error): ...
|
||||
|
||||
|
||||
class DuplicateSectionError(Error):
|
||||
@@ -215,16 +213,14 @@ class InterpolationError(Error):
|
||||
option = ... # type: str
|
||||
|
||||
|
||||
class InterpolationDepthError(InterpolationError):
|
||||
pass
|
||||
class InterpolationDepthError(InterpolationError): ...
|
||||
|
||||
|
||||
class InterpolationMissingOptionError(InterpolationError):
|
||||
reference = ... # type: str
|
||||
|
||||
|
||||
class InterpolationSyntaxError(InterpolationError):
|
||||
pass
|
||||
class InterpolationSyntaxError(InterpolationError): ...
|
||||
|
||||
|
||||
class ParsingError(Error):
|
||||
|
||||
Reference in New Issue
Block a user