Skip to content

Commit

Permalink
chore: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jan 2, 2022
1 parent 77a3cb7 commit a498db0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/griffe/agents/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def handle_attribute(self, node: ObjectNode, annotation: str | Name | Expression
node: The node to inspect.
annotation: A potentiel annotation.
"""
# TODO
# TODO: to improve
parent = self.current
labels: set[str] = set()

Expand Down
1 change: 0 additions & 1 deletion src/griffe/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ def module(self) -> Module:
return self.parent.module
raise ValueError

# TODO: rename to top_module (for packages collection and package property)
@cached_property
def package(self) -> Module:
"""Return the absolute top module (the package) of this object.
Expand Down
2 changes: 1 addition & 1 deletion src/griffe/docstrings/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

_warn = warning(__name__)

# TODO: Examples: from the documentation, I'm not sure there is a standard format for examples
# TODO: Examples: from the documentation, we're not sure there is a standard format for examples
PARAM_NAMES = frozenset(("param", "parameter", "arg", "argument", "key", "keyword"))
PARAM_TYPE_NAMES = frozenset(("type",))
ATTRIBUTE_NAMES = frozenset(("var", "ivar", "cvar"))
Expand Down

0 comments on commit a498db0

Please sign in to comment.