Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Aug 20, 2020
1 parent 6147bb8 commit 23abf71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
12 changes: 5 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
import os
import sys

import sphinx.locale
import sphinx.util

# So autodoc can import our package
sys.path.insert(0, os.path.abspath("../.."))

Expand Down Expand Up @@ -78,13 +81,8 @@
"undoc-members": True,
}

# import inspect
from sphinx.locale import __
from sphinx.util import logging

logger = logging.getLogger(__name__)
logger = sphinx.util.logging.getLogger(__name__)

# autodoc_typehints = "none"
set_type_checking_flag = True
typehints_fully_qualified = False
always_document_param_types = False
Expand All @@ -93,7 +91,7 @@

def warn_undocumented_members(app, what, name, obj, options, lines):
if len(lines) == 0:
logger.warning(__(f"{what} {name} is undocumented"))
logger.warning(sphinx.locale.__(f"{what} {name} is undocumented"))
lines.append(f".. Warning:: {what} ``{name}`` undocumented")


Expand Down
1 change: 0 additions & 1 deletion docs/source/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ emissions. See the :doc:`emissions example <examples/emissions>` for an example
.. autofunction:: qtrio.enter_emissions_channel
.. autoclass:: qtrio.Emission
.. autoclass:: qtrio.Emissions
:noindex:

If you need a more Qt-like callback mechanism :func:`qtrio.open_emissions_nursery`
offers that. Instead of tossing the callbacks behind the couch where they can leave
Expand Down

0 comments on commit 23abf71

Please sign in to comment.