Skip to content

Commit 2181284

Browse files
committed
AnnotationFactory and InputAnnotationAnnotation are inner
1 parent 80866a9 commit 2181284

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pyannotating.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66

7-
class AnnotationFactory(ABC):
7+
class _AnnotationFactory(ABC):
88
"""
99
Annotation factory class.
1010
Creates annotation by input other.
@@ -27,7 +27,7 @@ def _create_full_annotation_by(self, annotation: Any) -> Any:
2727
"""Annotation Creation Method from an input annotation."""
2828

2929

30-
class InputAnnotationAnnotation:
30+
class _InputAnnotationAnnotation:
3131
"""
3232
Singleton class for the annotation of the conditional empty space, in which
3333
the input type in the CustomAnnotationFactory should be placed.
@@ -53,12 +53,12 @@ def __ror__(self, other: Any) -> Union:
5353
return Union[other, self]
5454

5555

56-
class AnnotationTemplate(AnnotationFactory):
56+
class AnnotationTemplate(_AnnotationFactory):
5757
"""
58-
AnnotationFactory class delegating the construction of another factory's
58+
_AnnotationFactory class delegating the construction of another factory's
5959
annotation.
6060
61-
When called, replaces the InputAnnotationAnnotation instances from its
61+
When called, replaces the _InputAnnotationAnnotation instances from its
6262
arguments and their subcollections with the input annotation.
6363
6464
Templateizes Union.
@@ -199,7 +199,7 @@ def __class_getitem__(cls, annotation_resource: tuple[Any, Any] | Any) -> Any:
199199
number: Final = int | float | complex
200200

201201
# Pre-created instance without permanent formal creation of a new one.
202-
input_annotation: Final[InputAnnotationAnnotation] = InputAnnotationAnnotation()
202+
input_annotation: Final[_InputAnnotationAnnotation] = _InputAnnotationAnnotation()
203203

204204

205205
many_or_one: Final[AnnotationTemplate] = AnnotationTemplate(

0 commit comments

Comments
 (0)