(self, decorators: list[ast.expr])
| 300 | self.annotations[basename, name] = ast_unparse(annotation) |
| 301 | |
| 302 | def is_final(self, decorators: list[ast.expr]) -> bool: |
| 303 | final = {f'{modname}.final' for modname in self.typing_mods} |
| 304 | final |= self.typing_final_names |
| 305 | |
| 306 | for decorator in decorators: |
| 307 | try: |
| 308 | if ast_unparse(decorator) in final: |
| 309 | return True |
| 310 | except NotImplementedError: |
| 311 | pass |
| 312 | |
| 313 | return False |
| 314 | |
| 315 | def is_overload(self, decorators: list[ast.expr]) -> bool: |
| 316 | overload = {f'{modname}.overload' for modname in self.typing_mods} |
no outgoing calls
no test coverage detected