MCPcopy
hub / github.com/pex-tool/pex / from_str

Method from_str

pex/requirements.py:41–53  ·  view source on GitHub ↗
(
        cls,
        text,  # type: Text
        source="<string>",  # type: Text
    )

Source from the content-addressed store, hash-verified

39class LogicalLine(object):
40 @classmethod
41 def from_str(
42 cls,
43 text, # type: Text
44 source="<string>", # type: Text
45 ):
46 # type: (...) -> LogicalLine
47 return LogicalLine(
48 raw_text=text,
49 processed_text=text.strip(),
50 source=source,
51 start_line=1,
52 end_line=1,
53 )
54
55 raw_text = attr.ib() # type: Text
56 processed_text = attr.ib() # type: Text

Callers 3

parseMethod · 0.80
parse_requirement_stringFunction · 0.80
as_parsed_requirementFunction · 0.80

Calls 2

LogicalLineClass · 0.85
stripMethod · 0.80

Tested by

no test coverage detected