Astroid (used by pylint) calls this to see if our transform function needs to run.
(cls: nodes.ClassDef)
| 83 | |
| 84 | |
| 85 | def predicate(cls: nodes.ClassDef) -> bool: |
| 86 | """ |
| 87 | Astroid (used by pylint) calls this to see if our transform function needs to run. |
| 88 | """ |
| 89 | if cls.name in CLASS_NAME_SKIPLIST: |
| 90 | # class looks like an API model class, but it isn't. |
| 91 | return False |
| 92 | |
| 93 | if not cls.name.endswith("API") and "schema" not in cls.locals: |
| 94 | # class does not look like an API model class. |
| 95 | return False |
| 96 | |
| 97 | return True |
| 98 | |
| 99 | |
| 100 | def transform(cls: nodes.ClassDef): |
nothing calls this directly
no outgoing calls
no test coverage detected