File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments