mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix docstrings not exposed on public API.
This commit is contained in:
parent
ccce63e112
commit
d2aa99f56d
2 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
# for license information.
|
||||
|
||||
from __future__ import annotations
|
||||
import functools
|
||||
import typing
|
||||
|
||||
from debugpy import _version
|
||||
|
|
@ -24,6 +25,7 @@ if typing.TYPE_CHECKING:
|
|||
|
||||
def _api(cancelable=False):
|
||||
def apply(f):
|
||||
@functools.wraps(f)
|
||||
def wrapper(*args, **kwargs):
|
||||
from debugpy.server import api
|
||||
|
||||
|
|
|
|||
|
|
@ -14,5 +14,6 @@ def test_docstrings():
|
|||
member = getattr(debugpy, attr)
|
||||
|
||||
doc = inspect.getdoc(member)
|
||||
assert doc is not None, f"debugpy.{member} doesn't have a docstring"
|
||||
for lineno, line in enumerate(doc.split("\n")):
|
||||
assert len(line) <= 72
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue