mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
[doc] add docstring to QualifiedName
This commit is contained in:
parent
5f8f5c5624
commit
3965e4601b
1 changed files with 6 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ from typing import (
|
|||
)
|
||||
|
||||
import libcst as cst
|
||||
from libcst._add_slots import add_slots
|
||||
from libcst.metadata.base_provider import BatchableMetadataProvider
|
||||
from libcst.metadata.expression_context_provider import (
|
||||
ExpressionContext,
|
||||
|
|
@ -192,9 +193,14 @@ class QualifiedNameSource(Enum):
|
|||
LOCAL = auto()
|
||||
|
||||
|
||||
@add_slots
|
||||
@dataclass(frozen=True)
|
||||
class QualifiedName:
|
||||
#: Qualified name, e.g. ``a.b.c`` or ``fn.<locals>.var``.
|
||||
name: str
|
||||
|
||||
#: Source of the name, either :attr:`QualifiedNameSource.IMPORT`, :attr:`QualifiedNameSource.BUILTIN`
|
||||
#: or :attr:`QualifiedNameSource.LOCAL`.
|
||||
source: QualifiedNameSource
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue