Open
Description
Is your feature request related to a problem? Please describe.
I'd like to see the body of the import statement in addition the the constituents.
Describe the solution you'd like
We have:
class PyImport(BaseModel):
from_statement: str
imports: List[str]
But it'd be nice to have:
class PyImport(BaseModel):
from_statement: str
imports: List[str]
code_body: str
Describe alternatives you've considered
Obtain it manually by slicing the file with the lines of code.
Additional context
None.