Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mkdocstrings/griffe
/ functions
Functions
1,229 in github.com/mkdocstrings/griffe
⨍
Functions
1,229
◇
Types & classes
163
↳
Endpoints
4
Method
on_type_alias_node
Run when visiting a new type alias node during static/dynamic analysis. Parameters: node: The currently visited node.
packages/griffelib/src/griffe/_internal/extensions/base.py:343
Method
on_type_alias_node
(self, *, node: ast.AST | ObjectNode, **kwargs: Any)
packages/griffelib/tests/test_extensions/test_base.py:102
Method
overloads
The overloaded signatures declared in this class/module or for this function.
packages/griffelib/src/griffe/_internal/models.py:1984
Method
package
The absolute top module (the package) of this object. See also: [`module`][griffe.Object.module]. Examples: >>> import g
packages/griffelib/src/griffe/_internal/models.py:1010
Method
package
The absolute top module (the package) of this object. See also: [`module`][griffe.Alias.module].
packages/griffelib/src/griffe/_internal/models.py:1804
Method
parameters
The parameters of the current function or `__init__` method for classes. This property can fetch inherited members, and therefore is
packages/griffelib/src/griffe/_internal/models.py:1993
Method
parameters
The parameters of this class' `__init__` method, if any. This property fetches inherited members, and therefore is part of the consum
packages/griffelib/src/griffe/_internal/models.py:2399
Method
parent
The parent of this alias.
packages/griffelib/src/griffe/_internal/models.py:1475
Method
parent_is_class
Whether the object of this node's parent is a class.
packages/griffelib/src/griffe/_internal/agents/nodes/runtime.py:228
Function
parse_auto
Parse a docstring by automatically detecting the style it uses. See [`infer_docstring_style`][griffe.infer_docstring_style] for more information
packages/griffelib/src/griffe/_internal/docstrings/auto.py:188
Function
parse_google
Parse a Google-style docstring. This function iterates on lines of a docstring to build sections. It then returns this list of sections.
packages/griffelib/src/griffe/_internal/docstrings/google.py:881
Function
parse_numpy
Parse a Numpydoc-style docstring. This function iterates on lines of a docstring to build sections. It then returns this list of sections.
packages/griffelib/src/griffe/_internal/docstrings/numpy.py:910
Function
parse_sphinx
Parse a Sphinx-style docstring. Parameters: docstring: The docstring to parse. warn_unknown_params: Warn about documented paramet
packages/griffelib/src/griffe/_internal/docstrings/sphinx.py:98
Method
parsed
The docstring sections, parsed into structured data.
packages/griffelib/src/griffe/_internal/models.py:161
Function
patch_loggers
Patch Griffe logger and Griffe extensions' loggers. Parameters: get_logger_func: A function accepting a name as parameter and returning a
packages/griffelib/src/griffe/_internal/logger.py:105
Method
path
Path of the expressed name/attribute.
packages/griffelib/src/griffe/_internal/expressions.py:219
Method
path
The path of this attribute.
packages/griffelib/src/griffe/_internal/expressions.py:313
Method
path
The full, resolved name. If it was given when creating the name, return that. If a callable was given, call it and return its result.
packages/griffelib/src/griffe/_internal/expressions.py:742
Method
path
The path of this subscript's left part.
packages/griffelib/src/griffe/_internal/expressions.py:919
Method
path
The dotted path of this object. On regular objects (not aliases), the path is the canonical path. See also: [`canonical_path`][griff
packages/griffelib/src/griffe/_internal/models.py:1109
Method
path
The dotted path / import path of this object. See also: [`canonical_path`][griffe.Alias.canonical_path].
packages/griffelib/src/griffe/_internal/models.py:1485
Method
path
The object's (Python) path.
packages/griffelib/src/griffe/_internal/agents/nodes/runtime.py:90
Function
publish
Publish source and wheel distributions to PyPI. ```bash make publish ``` Publish the source and wheel distributions of your project
duties.py:377
Function
raise_module_not_found_error
(*args, **kwargs)
packages/griffelib/tests/test_loader.py:483
Function
reduce
(left: str | Expr, right: str | Expr)
packages/griffelib/src/griffe/_internal/agents/inspector.py:715
Method
relative_filepath
The file path where this object was defined, relative to the current working directory. If this object's file path is not relative to the cur
packages/griffelib/src/griffe/_internal/models.py:1086
Method
relative_filepath
The file path where this object was defined, relative to the current working directory. If this object's file path is not relative to the cur
packages/griffelib/src/griffe/_internal/models.py:1821
Method
relative_package_filepath
The file path where this object was defined, relative to the top module path. See also: [`filepath`][griffe.Object.filepath], [`relat
packages/griffelib/src/griffe/_internal/models.py:1042
Method
relative_package_filepath
The file path where this object was defined, relative to the top module path. See also: [`filepath`][griffe.Alias.filepath], [`relati
packages/griffelib/src/griffe/_internal/models.py:1835
Function
release
Release a new version of the project. ```bash make release [version=VERSION] ``` This task will: - Stage changes to `pyproject.
duties.py:398
Function
render_entrypoint
Render Griffe's main entrypoint's docs. Parameters: heading_level: The initial level of Markdown headings.
scripts/gen_structure_docs.py:90
Function
render_internal_api
Render Griffe's internal API's structure docs. This function prints Markdown headings, and the contents of the first comment block of a module,
scripts/gen_structure_docs.py:61
Function
render_public_api
Render Griffe's main module's docs. Parameters: heading_level: The initial level of Markdown headings.
scripts/gen_structure_docs.py:77
Method
required
Whether this parameter is required.
packages/griffelib/src/griffe/_internal/models.py:270
Method
resolve
Resolve a name within this object's and parents' scope. Parameters: name: The name to resolve. Raises: NameR
packages/griffelib/src/griffe/_internal/models.py:1197
Method
resolve
Resolve a name within this object's and parents' scope. Parameters: name: The name to resolve. Raises: NameR
packages/griffelib/src/griffe/_internal/models.py:2527
Method
resolved
The resolved object this name refers to.
packages/griffelib/src/griffe/_internal/expressions.py:769
Method
resolved
Whether this alias' target is resolved.
packages/griffelib/src/griffe/_internal/models.py:2172
Method
resolved_bases
Resolved class bases. This method is part of the consumer API: do not use when producing Griffe trees!
packages/griffelib/src/griffe/_internal/models.py:2040
Method
resolved_bases
Resolved class bases. This method is part of the consumer API: do not use when producing Griffe trees! See also: [`bases`][g
packages/griffelib/src/griffe/_internal/models.py:2429
Method
returns
The function return type annotation.
packages/griffelib/src/griffe/_internal/models.py:2003
Function
safe_get_value
Safely (no exception) get the string representation of a node. Parameters: node: The node to represent. filepath: An optional fil
packages/griffelib/src/griffe/_internal/agents/nodes/values.py:29
Method
setter
The setter linked to this function (property).
packages/griffelib/src/griffe/_internal/models.py:2012
Method
signature
The function signature.
packages/griffelib/src/griffe/_internal/docstrings/models.py:202
Method
signature
The class signature.
packages/griffelib/src/griffe/_internal/docstrings/models.py:211
Method
source
The original, uncleaned value of the docstring as written in the source. It is a simple concatenation of the source lines. These source lines
packages/griffelib/src/griffe/_internal/models.py:139
Method
source
The source code of this object. See also: [`lines`][griffe.Object.lines], [`lines_collection`][griffe.Object.lines_collection].
packages/griffelib/src/griffe/_internal/models.py:1189
Method
source
The source code of this object. See also: [`lines`][griffe.Alias.lines], [`lines_collection`][griffe.Alias.lines_collection].
packages/griffelib/src/griffe/_internal/models.py:1878
Method
source_link
Source link for this object, if available.
packages/griffelib/src/griffe/_internal/models.py:738
Method
source_link
Get the source link for this object, if available.
packages/griffelib/src/griffe/_internal/models.py:1574
Method
tail
Tail of the dependency. The `islice` object is sufficient for iteration or testing membership (`in`).
packages/griffelib/src/griffe/_internal/c3linear.py:29
Method
tails
Return self so that `__contains__` could be called.
packages/griffelib/src/griffe/_internal/c3linear.py:73
Method
target
The resolved target (actual object), if possible. Upon accessing this property, if the target is not already resolved, a lookup is do
packages/griffelib/src/griffe/_internal/models.py:2069
Function
test
Run the test suite. ```bash make test ``` Run the test suite with [Pytest](https://docs.pytest.org/) and plugins. Code source co
duties.py:445
Function
test_access_members_using_string_and_tuples
Assert wa can access the same members with both strings and tuples.
packages/griffelib/tests/test_mixins.py:8
Function
test_admonition_empty
Test an empty "See Also" admonition. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:148
Function
test_admonition_notes_special_case
Test that the "Warnings" section renders as a warning admonition. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:219
Function
test_admonition_see_also
Test a "See Also" admonition. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:125
Function
test_admonition_warnings_special_case
Test that the "Warnings" section renders as a warning admonition. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:195
Function
test_alias_proxies
The Alias class has all the necessary methods and properties.
packages/griffelib/tests/test_api.py:108
Function
test_all_kw_only_fields
Test that all fields can be made keyword-only.
packages/griffelib/tests/test_extensions/test_dataclasses.py:145
Function
test_analysis_events
Test analysis events triggering.
packages/griffelib/tests/test_extensions/test_base.py:192
Function
test_analysis_events_without_type_aliases
Test analysis events triggering.
packages/griffelib/tests/test_extensions/test_base.py:153
Function
test_annotation_resolution
Names are correctly resolved in the annotation scope of an object.
packages/griffelib/tests/test_models.py:643
Function
test_annotations_from_builtin_types
Assert builtin types are correctly transformed to annotations.
packages/griffelib/tests/test_inspector.py:20
Function
test_annotations_from_classes
Assert custom classes are correctly transformed to annotations.
packages/griffelib/tests/test_inspector.py:29
Function
test_annotations_from_types
Assert annotations are correctly converted to string.
packages/griffelib/tests/test_inspector.py:76
Function
test_annotations_from_types_before_314
Assert annotations are correctly converted to string.
packages/griffelib/tests/test_inspector.py:53
Function
test_api_matches_inventory
All public objects are added to the inventory.
packages/griffelib/tests/test_api.py:167
Function
test_attributes_section
Parse attributes section. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:623
Function
test_attributes_that_have_no_annotations
Dataclass attributes that have no annotatations are not parameters.
packages/griffelib/tests/test_models.py:438
Function
test_avoid_false_positive_sections
Avoid false positive when parsing sections. Parameters: parse_google: Fixture parser.
packages/griffelib/tests/test_docstrings/test_google.py:1740
Function
test_blank_lines_in_item_descriptions
Support blank lines in the middle of item descriptions. Parameters: parse_numpy: Fixture parser. newlines: Number of new lines be
packages/griffelib/tests/test_docstrings/test_numpy.py:1005
Function
test_blank_lines_in_section
Support blank lines in the middle of sections. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:835
Function
test_building_annotations_from_nodes
Test building annotations from AST nodes. Parameters: expression: An expression (parametrized).
packages/griffelib/tests/test_nodes.py:157
Function
test_building_expressions_from_nodes
Test building annotations from AST nodes. Parameters: code: An expression (parametrized).
packages/griffelib/tests/test_nodes.py:172
Function
test_building_function_and_class_signatures
Test the construction of a class/function signature.
packages/griffelib/tests/test_models.py:573
Function
test_can_warn_without_parent_module
Assert we can parse a docstring even if it does not have a parent module.
packages/griffelib/tests/test_docstrings/test_warnings.py:8
Function
test_class_level_imports
Assert annotations using class-level imports are resolved.
packages/griffelib/tests/test_inspector.py:88
Function
test_class_uses_init_parameters
Assert we use the `__init__` parameters when parsing classes' parameters sections. Parameters: parse_google: Fixture parser.
packages/griffelib/tests/test_docstrings/test_google.py:908
Function
test_class_uses_init_parameters
Assert we use the `__init__` parameters when parsing classes' parameters sections. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:959
Function
test_classvar_annotations
Assert class variable and instance variable annotations are correctly parsed and merged.
packages/griffelib/tests/test_visitor.py:308
Function
test_classvar_fields
Test that `ClassVar` fields are not included in the `__init__` method.
packages/griffelib/tests/test_extensions/test_dataclasses.py:63
Function
test_code_blocks
Parse code blocks. Parameters: parse_google: Fixture parser.
packages/griffelib/tests/test_docstrings/test_google.py:110
Function
test_code_blocks
Parse code blocks. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:57
Function
test_computing_mro
Test computing MRO. Parameters: classes: A list of classes inheriting from each other. cls: The class to compute the MRO of.
packages/griffelib/tests/test_inheritance.py:137
Function
test_dataclass_parameter_docstrings
Class parameters should have a docstring attribute.
packages/griffelib/tests/test_models.py:397
Function
test_dataclass_parameter_kinds
Check dataclass and equivalent non-dataclass parameters. The parameter kinds for each pair should be the same. Parameters: code: Pyt
packages/griffelib/tests/test_models.py:183
Function
test_dataclass_properties_and_class_variables
Don't return properties or class variables as parameters of dataclasses.
packages/griffelib/tests/test_models.py:101
Function
test_dataclass_support
Test our `dataclass` support.
packages/griffelib/tests/test_extensions/test_dataclasses.py:6
Function
test_deepcopy
Assert we can deep-copy object trees.
packages/griffelib/tests/test_models.py:92
Function
test_default_value_from_nodes
Test getting default value from AST nodes. Parameters: default: A default value (parametrized).
packages/griffelib/tests/test_nodes.py:225
Function
test_deferred_finder
Check that the deferred finder works as expected.
packages/griffelib/tests/test_loader.py:530
Function
test_delete_parameters
We can delete parameters.
packages/griffelib/tests/test_models.py:527
Function
test_delete_type_parameters
We can delete type parameters.
packages/griffelib/tests/test_models.py:626
Function
test_deprecated_section
Parse deprecated section. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:455
Function
test_detect_optional_flag
Detect the optional part of a parameter docstring. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:982
Function
test_detecting_dunder_attributes_as_public
Dunder attributes (methods, etc.) must be considered public.
packages/griffelib/tests/test_public_api.py:13
Function
test_diff_griffe
Test the different incompatibility finders. Parameters: old_code: Parametrized code of the old module version. new_code: Parametr
packages/griffelib/tests/test_diff.py:168
Function
test_different_indentation
Parse different indentations, warn on confusing indentation. Parameters: parse_google: Fixture parser.
packages/griffelib/tests/test_docstrings/test_google.py:151
← previous
next →
801–900 of 1,229, ranked by callers