diff --git a/CHANGELOG.md b/CHANGELOG.md index ec57bf03..6e8f8fe8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.15.1](https://github.com/mkdocstrings/python/releases/tag/1.15.1) - 2025-02-17 + +[Compare with 1.15.0](https://github.com/mkdocstrings/python/compare/1.15.0...1.15.1) + +### Bug Fixes + +- Unwrap `Annotated` regardless of `signature_crossrefs` ([d809f1a](https://github.com/mkdocstrings/python/commit/d809f1a9e6a6f4eaf6fe4a18c2ec0e69e5716a12) by Timothée Mazzucotelli). [Issue-249](https://github.com/mkdocstrings/python/issues/249) + ## [1.15.0](https://github.com/mkdocstrings/python/releases/tag/1.15.0) - 2025-02-11 [Compare with 1.14.6](https://github.com/mkdocstrings/python/compare/1.14.6...1.15.0) diff --git a/scripts/griffe_extensions.py b/scripts/griffe_extensions.py index 4ff0c8cc..7d283054 100644 --- a/scripts/griffe_extensions.py +++ b/scripts/griffe_extensions.py @@ -28,7 +28,7 @@ def on_attribute_instance( except AttributeError: return - if field.canonical_path == "mkdocstrings_handler.python.config.Field": + if field.canonical_path == "mkdocstrings_handlers.python.config.Field": description = next( attr.value for attr in field.arguments diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja b/src/mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja index eb8cf552..ce5c3f04 100644 --- a/src/mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja +++ b/src/mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja @@ -47,7 +47,7 @@ Context: {#- Prepare type annotation. -#} {%- if config.show_signature_annotations and parameter.annotation is not none -%} {%- set ns.equal = " = " -%} - {%- if config.separate_signature and config.signature_crossrefs -%} + {%- if config.separate_signature -%} {%- with expression = parameter.annotation -%} {%- set ns.annotation -%}: {% include "expression"|get_template with context %}{%- endset -%} {%- endwith -%}