We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Probably it would be good to have this level of abstraction for name handling.
This is the test code of the DottedName class.
The attractiveness comes from the contextualize() method:
contextualize()
>>> DottedName('foo.bar.baz.qux').contextualize(DottedName('foo.bar')) DottedName('baz', 'qux')
This would help contextualize the names when we need, to avoid stuff like this (This is in #414):
It could also help figure a standard way of showing the names and solve #280
What I propose here is to edit some stuff a follow:
Documentable.expandName(name:Union[str, DottedName]) -> DottedName
Documentable.fullDottedName() -> DottedName
node2dottedname(node:Optional[ast.expr]) -> Optional[DottedName]
node2fullname(node:Optional[ast.expr], ctx: model.Documentable) -> Optional[DottedName]
System.objForFullName(fullName: Union[str, DottedName]) -> Optional[Documentable]
System.find_object(full_name: Union[str, DottedName]) -> Optional[Documentable]
CanContainImportsDocumentable._localNameToFullName_map: Dict[str, DottedName]
CanContainImportsDocumentable._localNameToFullName(name: str) -> DottedName
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Probably it would be good to have this level of abstraction for name handling.
This is the test code of the DottedName class.
The attractiveness comes from the
contextualize()
method:This would help contextualize the names when we need, to avoid stuff like this (This is in #414):
It could also help figure a standard way of showing the names and solve #280
What I propose here is to edit some stuff a follow:
Documentable.expandName(name:Union[str, DottedName]) -> DottedName
Documentable.fullDottedName() -> DottedName
node2dottedname(node:Optional[ast.expr]) -> Optional[DottedName]
.node2fullname(node:Optional[ast.expr], ctx: model.Documentable) -> Optional[DottedName]
System.objForFullName(fullName: Union[str, DottedName]) -> Optional[Documentable]
System.find_object(full_name: Union[str, DottedName]) -> Optional[Documentable]
CanContainImportsDocumentable._localNameToFullName_map: Dict[str, DottedName]
CanContainImportsDocumentable._localNameToFullName(name: str) -> DottedName
The text was updated successfully, but these errors were encountered: