@@ -87,7 +87,6 @@ def get_annotation_args(annotation, module: str, class_name: str) -> Tuple:
87
87
def format_annotation (annotation ,
88
88
fully_qualified : bool = False ,
89
89
simplify_optional_unions : bool = True ) -> str :
90
- print (f'formatting annotation: { annotation !r} ({ type (annotation )} )' )
91
90
# Special cases
92
91
if annotation is None or annotation is type (None ): # noqa: E721
93
92
return ':py:obj:`None`'
@@ -166,8 +165,6 @@ def process_signature(app, what: str, name: str, obj, options, signature, return
166
165
param .replace (annotation = inspect .Parameter .empty )
167
166
for param in signature .parameters .values ()
168
167
]
169
- if name == 'dummy_module.function_with_unresolvable_annotation' :
170
- print (f' parameters: { parameters } ' )
171
168
172
169
# The generated dataclass __init__() and class are weird and need extra checks
173
170
# This helper function operates on the generated class and methods
@@ -189,8 +186,6 @@ def _is_dataclass(name: str, what: str, qualname: str) -> bool:
189
186
return
190
187
191
188
if parameters :
192
- if name == 'dummy_module.function_with_unresolvable_annotation' :
193
- print (' formatting parameters' )
194
189
if inspect .isclass (original_obj ) or (what == 'method' and name .endswith ('.__init__' )):
195
190
del parameters [0 ]
196
191
elif what == 'method' :
@@ -214,8 +209,6 @@ def _is_dataclass(name: str, what: str, qualname: str) -> bool:
214
209
parameters = parameters ,
215
210
return_annotation = inspect .Signature .empty )
216
211
217
- if name == 'dummy_module.function_with_unresolvable_annotation' :
218
- print (' stringifying signature' )
219
212
return stringify_signature (signature ).replace ('\\ ' , '\\ \\ ' ), None
220
213
221
214
0 commit comments