Skip to content

File

File

Bases: BaseModel

Class defining a file. Each file has a path, a language, a content, a list of identifiers and a package.

Source code in src/entity/file.py
 8
 9
10
11
12
13
14
15
16
17
class File(BaseModel):
    """
    Class defining a file. Each file has a path, a language, a content, a list of identifiers and a package.
    """
    path: str
    language: str
    content: Optional[str] = None
    identifiers: Optional[List[str]] = None
    package: Optional[str] = None
    annotation: Optional[Annotation] = None