Skip to content

Commit

Permalink
docs: use pep484 typing annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Aug 21, 2020
1 parent 7825717 commit 9ad9299
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
"sphinxemoji.sphinxemoji",
"sphinx_autodoc_typehints",
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -52,6 +53,7 @@

autodoc_member_order = 'bysource'

set_type_checking_flag = True

# -- Options for HTML output -------------------------------------------------

Expand Down
7 changes: 6 additions & 1 deletion paquo/hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ def add_detection(self,
path_class_probability: float = math.nan) -> QuPathPathDetectionObject:
if self._readonly:
raise IOError("project in readonly mode")
"""convenience method for adding detections"""
"""convenience method for adding detections
Notes
-----
these will be added to self.detections
"""
obj = QuPathPathDetectionObject.from_shapely(
roi, path_class, measurements,
path_class_probability=path_class_probability
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ dev =
docs =
sphinx
sphinxemoji
sphinx-autodoc-typehints

[options.entry_points]
console_scripts =
Expand Down

0 comments on commit 9ad9299

Please sign in to comment.