(typespec, *,
_regex=re.compile(rf'^{SIMPLE_TYPE}$', re.VERBOSE),
)
| 34 | |
| 35 | |
| 36 | def is_pots(typespec, *, |
| 37 | _regex=re.compile(rf'^{SIMPLE_TYPE}$', re.VERBOSE), |
| 38 | ): |
| 39 | |
| 40 | if not typespec: |
| 41 | return None |
| 42 | if type(typespec) is not str: |
| 43 | _, _, _, typespec, _ = _info.get_parsed_vartype(typespec) |
| 44 | return _regex.match(typespec) is not None |
| 45 | |
| 46 | |
| 47 | def is_funcptr(vartype): |
no test coverage detected
searching dependent graphs…