Skip to content

Commit 14ae690

Browse files
committed
Document callable declaration projection
1 parent 480a504 commit 14ae690

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# python-introspect
22

33
Extensible 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():
3030
dataclass 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

3540
Use ``register_namespace_provider`` to contribute names used while resolving

‎docs/source/index.rst‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
4041
The primary public types are ``SignatureAnalyzer``, ``ParameterInfo``,
4142
``DocstringExtractor``, ``UnifiedParameterAnalyzer``, and ``Enableable``. The
4243
registration 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`.

0 commit comments

Comments
 (0)