DocumentVersion
- class DocumentVersion
Document version
(source, sema)pair.Members defined in
DocumentVersion(5 members)
RWThe sema version of the
document. This is separate fromsourcesincesemamay be recomputed after one of the dependencies has changed. May also be reset to 0 on source changes. Most similar to patch version in semantic versioning scheme.
RWThe version of the source
TextDocumentthe document was built from. Always 0 if there is no actual source associated. Takes priority oversema.
Attributes
- property sema: int
The sema version of the
document. This is separate fromsourcesincesemamay be recomputed after one of the dependencies has changed. May also be reset to 0 on source changes. Most similar to patch version in semantic versioning scheme.
- property source: int
The version of the source
TextDocumentthe document was built from. Always 0 if there is no actual source associated. Takes priority oversema.
Methods
- __init__(source: int = 0, sema: int = 0) None
- __int__() int
- __str__() str