If the argument is the name of a method (of form C.m), return the type portion in quotes (e.g. "y"). Otherwise, return the string unmodified.
(name: str)
| 3281 | |
| 3282 | |
| 3283 | def extract_type(name: str) -> str: |
| 3284 | """If the argument is the name of a method (of form C.m), return |
| 3285 | the type portion in quotes (e.g. "y"). Otherwise, return the string |
| 3286 | unmodified. |
| 3287 | """ |
| 3288 | name = re.sub('^"[a-zA-Z0-9_]+" of ', "", name) |
| 3289 | return name |
| 3290 | |
| 3291 | |
| 3292 | def strip_quotes(s: str) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…