(&self)
| 1073 | |
| 1074 | impl TypeParam { |
| 1075 | pub fn get_name(&self) -> String { |
| 1076 | match self { |
| 1077 | TypeParam::TypeVar(t) => t.name.clone(), |
| 1078 | TypeParam::ParamSpec(p) => p.name.clone(), |
| 1079 | TypeParam::TypeVarTuple(t) => t.name.clone(), |
| 1080 | } |
| 1081 | } |
| 1082 | } |
| 1083 | |
| 1084 | // https://docs.python.org/3/library/ast.html#ast.TypeVar |
no outgoing calls
no test coverage detected