File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# python-introspect
22
33Extensible analysis of callable signatures, dataclass fields, type hints, and
4- docstrings.
4+ docstrings, plus signature-derived callable declaration projection .
55
66[ ![ Python 3.10+] ( https://img.shields.io/badge/python-3.10+-blue.svg )] ( https://www.python.org/downloads/ )
77[ ![ PyPI version] ( https://badge.fury.io/py/python-introspect.svg )] ( https://badge.fury.io/py/python-introspect )
@@ -30,6 +30,11 @@ for name, info in parameters.items():
3030dataclass types, and instances. It returns a mapping of names to
3131`` ParameterInfo `` records.
3232
33+ Use `` callable_declaration_kwargs `` when declaration identity should omit
34+ keyword arguments equal to their signature defaults. The caller supplies value
35+ equality so array, lazy, or other framework-specific values keep their owning
36+ semantics.
37+
3338## Extension points
3439
3540Use `` register_namespace_provider `` to contribute names used while resolving
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ python-introspect
22=================
33
44``python-introspect `` analyzes callable signatures, dataclass fields, resolved
5- type hints, and docstrings through one extensible API.
5+ type hints, and docstrings, and projects canonical callable declarations from
6+ signature defaults through one extensible API.
67
78.. toctree ::
89 :maxdepth: 2
@@ -40,4 +41,6 @@ Public surface
4041The primary public types are ``SignatureAnalyzer ``, ``ParameterInfo ``,
4142``DocstringExtractor ``, ``UnifiedParameterAnalyzer ``, and ``Enableable ``. The
4243registration helpers for namespace providers, type resolvers, wrapper targets,
43- parameter exclusions, and nominal enablement are also public; see :doc: `api `.
44+ parameter exclusions, and nominal enablement are also public.
45+ ``callable_declaration_kwargs `` removes keyword arguments equal to their
46+ signature defaults using caller-provided equality semantics; see :doc: `api `.
You can’t perform that action at this time.
0 commit comments