def infer_typing_attr(node, context=None):
try:<EOL><INDENT>value = next(node.value.infer())<EOL><DEDENT>except InferenceError as exc:<EOL><INDENT>raise UseInferenceDefault from exc<EOL><DEDENT>if not value.qname().startswith("<STR_LIT>"):<EOL><INDENT>raise UseInferenceDefault<EOL><DEDENT>node = extract_node(TYPING_TYPE_TEMPLATE.format(value.qname().split("<STR_LIT:.>")[-<NUM_LIT:1>]))<EOL>return node.infer(context=context)<EOL>
Infer a typing.X[...] subscript