Skip to content

Replace inspect module for parsing #182

@meshy

Description

@meshy

We currently use the inspect module to extract Django code and structure.

This has several drawbacks:

We recently refactored the populate_cbv script to abstract the importer into a protocol that will (hopefully) make it easier for new importers to be written. LibCSV may be an appropriate alternative to inspect.

class CodeImporter(Protocol):
def generate_code_data(self) -> Iterator[CodeElement]:
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions