Skip to content

Commit

Permalink
- use cheaper check as suggested by @teythoon
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Jan 4, 2023
1 parent c8a635e commit ba0550c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/component/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def _inherits_docs(func, iface):

# doc can be None if the interpreter drops all docstrings when the
# environment variable PYTHONOPTIMIZE is set 2.
if not doc:
if doc is None:
return func

# By adding the ..seealso:: we get a link from our overview page
Expand Down

0 comments on commit ba0550c

Please sign in to comment.