MCPcopy Create free account

hub / github.com/mkdocstrings/griffe / functions

Functions1,229 in github.com/mkdocstrings/griffe

Methodon_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
Methodon_type_alias_node
(self, *, node: ast.AST | ObjectNode, **kwargs: Any)
packages/griffelib/tests/test_extensions/test_base.py:102
Methodoverloads
The overloaded signatures declared in this class/module or for this function.
packages/griffelib/src/griffe/_internal/models.py:1984
Methodpackage
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
Methodpackage
The absolute top module (the package) of this object. See also: [`module`][griffe.Alias.module].
packages/griffelib/src/griffe/_internal/models.py:1804
Methodparameters
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
Methodparameters
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
Methodparent
The parent of this alias.
packages/griffelib/src/griffe/_internal/models.py:1475
Methodparent_is_class
Whether the object of this node's parent is a class.
packages/griffelib/src/griffe/_internal/agents/nodes/runtime.py:228
Functionparse_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
Functionparse_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
Functionparse_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
Functionparse_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
Methodparsed
The docstring sections, parsed into structured data.
packages/griffelib/src/griffe/_internal/models.py:161
Functionpatch_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
Methodpath
Path of the expressed name/attribute.
packages/griffelib/src/griffe/_internal/expressions.py:219
Methodpath
The path of this attribute.
packages/griffelib/src/griffe/_internal/expressions.py:313
Methodpath
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
Methodpath
The path of this subscript's left part.
packages/griffelib/src/griffe/_internal/expressions.py:919
Methodpath
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
Methodpath
The dotted path / import path of this object. See also: [`canonical_path`][griffe.Alias.canonical_path].
packages/griffelib/src/griffe/_internal/models.py:1485
Methodpath
The object's (Python) path.
packages/griffelib/src/griffe/_internal/agents/nodes/runtime.py:90
Functionpublish
Publish source and wheel distributions to PyPI. ```bash make publish ``` Publish the source and wheel distributions of your project
duties.py:377
Functionraise_module_not_found_error
(*args, **kwargs)
packages/griffelib/tests/test_loader.py:483
Functionreduce
(left: str | Expr, right: str | Expr)
packages/griffelib/src/griffe/_internal/agents/inspector.py:715
Methodrelative_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
Methodrelative_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
Methodrelative_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
Methodrelative_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
Functionrelease
Release a new version of the project. ```bash make release [version=VERSION] ``` This task will: - Stage changes to `pyproject.
duties.py:398
Functionrender_entrypoint
Render Griffe's main entrypoint's docs. Parameters: heading_level: The initial level of Markdown headings.
scripts/gen_structure_docs.py:90
Functionrender_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
Functionrender_public_api
Render Griffe's main module's docs. Parameters: heading_level: The initial level of Markdown headings.
scripts/gen_structure_docs.py:77
Methodrequired
Whether this parameter is required.
packages/griffelib/src/griffe/_internal/models.py:270
Methodresolve
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
Methodresolve
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
Methodresolved
The resolved object this name refers to.
packages/griffelib/src/griffe/_internal/expressions.py:769
Methodresolved
Whether this alias' target is resolved.
packages/griffelib/src/griffe/_internal/models.py:2172
Methodresolved_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
Methodresolved_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
Methodreturns
The function return type annotation.
packages/griffelib/src/griffe/_internal/models.py:2003
Functionsafe_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
Methodsetter
The setter linked to this function (property).
packages/griffelib/src/griffe/_internal/models.py:2012
Methodsignature
The function signature.
packages/griffelib/src/griffe/_internal/docstrings/models.py:202
Methodsignature
The class signature.
packages/griffelib/src/griffe/_internal/docstrings/models.py:211
Methodsource
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
Methodsource
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
Methodsource
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
Methodsource_link
Source link for this object, if available.
packages/griffelib/src/griffe/_internal/models.py:738
Methodsource_link
Get the source link for this object, if available.
packages/griffelib/src/griffe/_internal/models.py:1574
Methodtail
Tail of the dependency. The `islice` object is sufficient for iteration or testing membership (`in`).
packages/griffelib/src/griffe/_internal/c3linear.py:29
Methodtails
Return self so that `__contains__` could be called.
packages/griffelib/src/griffe/_internal/c3linear.py:73
Methodtarget
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
Functiontest
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
Functiontest_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
Functiontest_admonition_empty
Test an empty "See Also" admonition. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:148
Functiontest_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
Functiontest_admonition_see_also
Test a "See Also" admonition. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:125
Functiontest_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
Functiontest_alias_proxies
The Alias class has all the necessary methods and properties.
packages/griffelib/tests/test_api.py:108
Functiontest_all_kw_only_fields
Test that all fields can be made keyword-only.
packages/griffelib/tests/test_extensions/test_dataclasses.py:145
Functiontest_analysis_events
Test analysis events triggering.
packages/griffelib/tests/test_extensions/test_base.py:192
Functiontest_analysis_events_without_type_aliases
Test analysis events triggering.
packages/griffelib/tests/test_extensions/test_base.py:153
Functiontest_annotation_resolution
Names are correctly resolved in the annotation scope of an object.
packages/griffelib/tests/test_models.py:643
Functiontest_annotations_from_builtin_types
Assert builtin types are correctly transformed to annotations.
packages/griffelib/tests/test_inspector.py:20
Functiontest_annotations_from_classes
Assert custom classes are correctly transformed to annotations.
packages/griffelib/tests/test_inspector.py:29
Functiontest_annotations_from_types
Assert annotations are correctly converted to string.
packages/griffelib/tests/test_inspector.py:76
Functiontest_annotations_from_types_before_314
Assert annotations are correctly converted to string.
packages/griffelib/tests/test_inspector.py:53
Functiontest_api_matches_inventory
All public objects are added to the inventory.
packages/griffelib/tests/test_api.py:167
Functiontest_attributes_section
Parse attributes section. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:623
Functiontest_attributes_that_have_no_annotations
Dataclass attributes that have no annotatations are not parameters.
packages/griffelib/tests/test_models.py:438
Functiontest_avoid_false_positive_sections
Avoid false positive when parsing sections. Parameters: parse_google: Fixture parser.
packages/griffelib/tests/test_docstrings/test_google.py:1740
Functiontest_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
Functiontest_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
Functiontest_building_annotations_from_nodes
Test building annotations from AST nodes. Parameters: expression: An expression (parametrized).
packages/griffelib/tests/test_nodes.py:157
Functiontest_building_expressions_from_nodes
Test building annotations from AST nodes. Parameters: code: An expression (parametrized).
packages/griffelib/tests/test_nodes.py:172
Functiontest_building_function_and_class_signatures
Test the construction of a class/function signature.
packages/griffelib/tests/test_models.py:573
Functiontest_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
Functiontest_class_level_imports
Assert annotations using class-level imports are resolved.
packages/griffelib/tests/test_inspector.py:88
Functiontest_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
Functiontest_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
Functiontest_classvar_annotations
Assert class variable and instance variable annotations are correctly parsed and merged.
packages/griffelib/tests/test_visitor.py:308
Functiontest_classvar_fields
Test that `ClassVar` fields are not included in the `__init__` method.
packages/griffelib/tests/test_extensions/test_dataclasses.py:63
Functiontest_code_blocks
Parse code blocks. Parameters: parse_google: Fixture parser.
packages/griffelib/tests/test_docstrings/test_google.py:110
Functiontest_code_blocks
Parse code blocks. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:57
Functiontest_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
Functiontest_dataclass_parameter_docstrings
Class parameters should have a docstring attribute.
packages/griffelib/tests/test_models.py:397
Functiontest_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
Functiontest_dataclass_properties_and_class_variables
Don't return properties or class variables as parameters of dataclasses.
packages/griffelib/tests/test_models.py:101
Functiontest_dataclass_support
Test our `dataclass` support.
packages/griffelib/tests/test_extensions/test_dataclasses.py:6
Functiontest_deepcopy
Assert we can deep-copy object trees.
packages/griffelib/tests/test_models.py:92
Functiontest_default_value_from_nodes
Test getting default value from AST nodes. Parameters: default: A default value (parametrized).
packages/griffelib/tests/test_nodes.py:225
Functiontest_deferred_finder
Check that the deferred finder works as expected.
packages/griffelib/tests/test_loader.py:530
Functiontest_delete_parameters
We can delete parameters.
packages/griffelib/tests/test_models.py:527
Functiontest_delete_type_parameters
We can delete type parameters.
packages/griffelib/tests/test_models.py:626
Functiontest_deprecated_section
Parse deprecated section. Parameters: parse_numpy: Fixture parser.
packages/griffelib/tests/test_docstrings/test_numpy.py:455
Functiontest_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
Functiontest_detecting_dunder_attributes_as_public
Dunder attributes (methods, etc.) must be considered public.
packages/griffelib/tests/test_public_api.py:13
Functiontest_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
Functiontest_different_indentation
Parse different indentations, warn on confusing indentation. Parameters: parse_google: Fixture parser.
packages/griffelib/tests/test_docstrings/test_google.py:151
← previousnext →801–900 of 1,229, ranked by callers