Skip to content

Commit 10bea08

Browse files
fix code report issues (#37657)
Co-authored-by: Catalina Peralta <[email protected]>
1 parent c6d4b95 commit 10bea08

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/breaking_changes_checker/detect_breaking_changes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ def get_parameter_type(annotation) -> str:
260260
if isinstance(annotation, ast.Attribute):
261261
return annotation.attr
262262
if isinstance(annotation, ast.Constant):
263+
if annotation.value is None:
264+
return "None"
263265
return annotation.value
264266
if isinstance(annotation, ast.Subscript):
265267
if isinstance(annotation.slice, tuple):
@@ -396,6 +398,7 @@ def create_class_report(cls: Type) -> Dict:
396398
m = getattr(cls, method)
397399
except AttributeError:
398400
_LOGGER.info(f"Skipping method check for {method} on {cls}.")
401+
continue
399402

400403
if inspect.isfunction(m) or inspect.ismethod(m):
401404
if inspect.iscoroutinefunction(m):

0 commit comments

Comments
 (0)