Skip to content

Commit 3a696f2

Browse files
committed
Renaming _original_factory to _factory in AnnotationTemplate
1 parent c1a4b55 commit 3a696f2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

pyannotating.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,24 @@ class AnnotationTemplate(_AnnotationFactory):
7373
annotations.
7474
"""
7575

76-
self._original_factory = original_factory
7776
def __init__(self, factory: _ItemStorage, annotations: list):
77+
self._factory = factory
7878
self._annotations = tuple(annotations)
7979

8080
def __repr__(self) -> str:
8181
return "{factory}{arguments}".format(
8282
factory=(
83-
self._original_factory.__name__
84-
if hasattr(self._original_factory, '__name__')
85-
else self._original_factory
83+
self._factory.__name__
84+
if hasattr(self._factory, '__name__')
85+
else self._factory
8686
),
8787
arguments=str(self.__recursively_format(self._annotations)).replace('\'', str())
8888
)
8989

9090
def _create_full_annotation_by(self, annotation: Any) -> Any:
9191
formatted_annotations = self.__get_formatted_annotations_from(self._annotations, annotation)
9292

93-
return self._original_factory[
93+
return self._factory[
9494
formatted_annotations[0]
9595
if len(formatted_annotations) == 1
9696
else formatted_annotations

0 commit comments

Comments
 (0)