Bases: Symbol
Represents an unknown symbol.
An unknown symbol is used to represent a symbol that could not be determined.
It is used as a placeholder for symbols that could not be determined during the analysis.
Attributes:
| Name |
Type |
Description |
node |
None
|
|
Source code in src/library_analyzer/processing/api/purity_analysis/model/_module_data.py
| @dataclass
class UnknownSymbol(Symbol):
"""Represents an unknown symbol.
An unknown symbol is used to represent a symbol that could not be determined.
It is used as a placeholder for symbols that could not be determined during the analysis.
Attributes
----------
node :
"""
node: None = None
id: NodeID | None = None # type: ignore[assignment]
name: str = "UNKNOWN"
def __hash__(self) -> int:
return hash(str(self))
def __str__(self) -> str:
return f"{self.__class__.__name__}.{self.name}"
|
id: NodeID | None = None
class-attribute
instance-attribute
name: str = 'UNKNOWN'
class-attribute
instance-attribute
node: None = None
class-attribute
instance-attribute
__hash__()
Source code in src/library_analyzer/processing/api/purity_analysis/model/_module_data.py
| def __hash__(self) -> int:
return hash(str(self))
|
__init__(node=None, id=None, name='UNKNOWN')
__str__()
Source code in src/library_analyzer/processing/api/purity_analysis/model/_module_data.py
| def __str__(self) -> str:
return f"{self.__class__.__name__}.{self.name}"
|