Skip to content

Commit 2c86a00

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3709b0e commit 2c86a00

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mypyc/codegen/emit.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def object_annotation(self, obj: object, line: str) -> str:
214214

215215
# replace the _safe_key
216216
pprint._safe_key = default_safe_key
217-
217+
218218
if any(x in formatted for x in ("/*", "*/", "\0")):
219219
return ""
220220

@@ -1245,5 +1245,6 @@ class _mypyc_safe_key(pprint._safe_key):
12451245
This is NOT safe for use as a sort key for other types, so we MUST replace the
12461246
original pprint._safe_key once we've pprinted our object.
12471247
"""
1248-
def __lt__(self, other: "_mypyc_safe_key") -> bool:
1248+
1249+
def __lt__(self, other: _mypyc_safe_key) -> bool:
12491250
return str(type(self.obj)) + repr(self.obj) < str(type(other.obj)) + repr(other.obj)

0 commit comments

Comments
 (0)