MCPcopy Index your code
hub / github.com/bpython/bpython / current_dotted_attribute

Function current_dotted_attribute

bpython/line.py:261–266  ·  view source on GitHub ↗

The dotted attribute-object pair before the cursor

(cursor_offset: int, line: str)

Source from the content-addressed store, hash-verified

259
260
261def current_dotted_attribute(cursor_offset: int, line: str) -> LinePart | None:
262 """The dotted attribute-object pair before the cursor"""
263 match = current_word(cursor_offset, line)
264 if match is not None and "." in match.word[1:]:
265 return match
266 return None
267
268
269_current_expression_attribute_re = LazyReCompile(

Callers

nothing calls this directly

Calls 1

current_wordFunction · 0.85

Tested by

no test coverage detected