def parse_item(self, key, value, flags: Flags) -> Optional[TransItem]:
parts = key.split('<STR_LIT:+>')<EOL>pure_key = parts[<NUM_LIT:0>]<EOL>try:<EOL><INDENT>if len(parts) == <NUM_LIT:2>:<EOL><INDENT>index = int(parts[<NUM_LIT:1>])<EOL><DEDENT>elif len(parts) > <NUM_LIT:2>:<EOL><INDENT>return<EOL><DEDENT>else:<EOL><INDENT>index = <NUM_LIT:1><EOL><DEDENT><DEDENT>except (ValueError, TypeError):<EOL><INDENT>return<EOL><DEDENT>if index < <NUM_LIT:1>:<EOL><INDENT>return<EOL><DEDENT>return TransItem(<EOL>key=pure_key,<EOL>index=index,<EOL>value=value,<EOL>flags=flags,<EOL>)<EOL>
Parse an item (and more specifically its key).