Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 97abdc7

Browse filesBrowse files
committed
Apparently trim trailing whitespace was turned off
1 parent 1908a4a commit 97abdc7
Copy full SHA for 97abdc7

File tree

Expand file treeCollapse file tree

2 files changed

+8
-8
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-8
lines changed

‎Lib/annotationlib.py

Copy file name to clipboardExpand all lines: Lib/annotationlib.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def binop(self, other):
400400
def __or__(self, other):
401401
if self.__stringifier_dict__.create_unions:
402402
return types.UnionType[self, other]
403-
403+
404404
return self.__make_new(
405405
ast.BinOp(self.__get_ast(), ast.BitOr(), self.__convert_to_ast(other))
406406
)
@@ -431,11 +431,11 @@ def rbinop(self, other):
431431
def __ror__(self, other):
432432
if self.__stringifier_dict__.create_unions:
433433
return types.UnionType[other, self]
434-
434+
435435
return self.__make_new(
436436
ast.BinOp(self.__convert_to_ast(other), ast.BitOr(), self.__get_ast())
437437
)
438-
438+
439439
del _make_rbinop
440440

441441
def _make_compare(op):
@@ -585,10 +585,10 @@ def call_annotate_function(annotate, format, *, owner=None, _is_evaluate=False):
585585
namespace = {**annotate.__builtins__, **annotate.__globals__}
586586
is_class = isinstance(owner, type)
587587
globals = _StringifierDict(
588-
namespace,
589-
annotate.__globals__,
590-
owner,
591-
is_class,
588+
namespace,
589+
annotate.__globals__,
590+
owner,
591+
is_class,
592592
create_unions=True
593593
)
594594
if annotate.__closure__:

‎Lib/test/test_annotationlib.py

Copy file name to clipboardExpand all lines: Lib/test/test_annotationlib.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def f(
117117
alpha_anno = anno["alpha"]
118118
self.assertIsInstance(alpha_anno, Union)
119119
self.assertEqual(
120-
typing.get_args(alpha_anno),
120+
typing.get_args(alpha_anno),
121121
(support.EqualToForwardRef("some", owner=f), support.EqualToForwardRef("obj", owner=f))
122122
)
123123

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.