Remove unnecessary ellipsis expressions (#9976)

Ignore flake8 F821 warnings in stub files
This commit is contained in:
Sebastian Rittau
2023-03-29 13:28:06 +02:00
committed by GitHub
parent 8df767f163
commit 027460f11a
29 changed files with 287 additions and 294 deletions

View File

@@ -70,7 +70,7 @@ class HTMLRepr(Repr):
def repr_unicode(self, x: AnyStr, level: complex) -> str: ...
class HTMLDoc(Doc):
_repr_instance: HTMLRepr = ...
_repr_instance: HTMLRepr
repr = _repr_instance.repr
escape = _repr_instance.escape
def page(self, title: str, contents: str) -> str: ...
@@ -154,7 +154,7 @@ class TextRepr(Repr):
def repr_instance(self, x: object, level: complex) -> str: ...
class TextDoc(Doc):
_repr_instance: TextRepr = ...
_repr_instance: TextRepr
repr = _repr_instance.repr
def bold(self, text: str) -> str: ...
def indent(self, text: str, prefix: str = " ") -> str: ...