Return a Python-safe identifier.
(self, name: str)
| 137 | } |
| 138 | |
| 139 | def safe_name(self, name: str) -> str: |
| 140 | """Return a Python-safe identifier.""" |
| 141 | if keyword.iskeyword(name): |
| 142 | return f"{name}_" |
| 143 | return name |
| 144 | |
| 145 | def is_imported_type(self, type_def: object) -> bool: |
| 146 | """Return True if a type definition comes from an imported IDL file.""" |
no outgoing calls
no test coverage detected