standardize packaging, tooling, docs, CI, and licensing
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from typing import Dict, Iterable, Optional
|
||||
|
||||
from collections.abc import Iterable
|
||||
|
||||
class DocObject:
|
||||
"""Represents a documented Python object."""
|
||||
@@ -7,21 +6,18 @@ class DocObject:
|
||||
name: str
|
||||
kind: str
|
||||
path: str
|
||||
signature: Optional[str]
|
||||
docstring: Optional[str]
|
||||
members: Dict[str, "DocObject"]
|
||||
signature: str | None
|
||||
docstring: str | None
|
||||
members: dict[str, DocObject]
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
name: str,
|
||||
kind: str,
|
||||
path: str,
|
||||
signature: Optional[str] = ...,
|
||||
docstring: Optional[str] = ...,
|
||||
signature: str | None = ...,
|
||||
docstring: str | None = ...,
|
||||
) -> None: ...
|
||||
|
||||
def add_member(self, obj: "DocObject") -> None: ...
|
||||
|
||||
def get_member(self, name: str) -> "DocObject": ...
|
||||
|
||||
def get_all_members(self) -> Iterable["DocObject"]: ...
|
||||
def add_member(self, obj: DocObject) -> None: ...
|
||||
def get_member(self, name: str) -> DocObject: ...
|
||||
def get_all_members(self) -> Iterable[DocObject]: ...
|
||||
|
||||
Reference in New Issue
Block a user