You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: filters: [] not usable when group_by_category is set to false #324
Then, the _test() method is not appeared in the generated document.
Full traceback
Full traceback
DEBUG-mkdocstrings_handlers: python\templates\material\function.html.jinja: Renderingmod.test.testDEBUG-mkdocstrings_handlers: python\templates\material\signature.html.jinja: RenderingsignatureDEBUG-mkdocstrings_handlers: python\templates\material\docstring.html.jinja: Renderingdocstring# the following lines won't appear if `group_by_category` is set to `false`DEBUG-mkdocstrings_handlers: python\templates\material\function.html.jinja: Renderingmod.test._testDEBUG-mkdocstrings_handlers: python\templates\material\signature.html.jinja: RenderingsignatureDEBUG-mkdocstrings_handlers: python\templates\material\docstring.html.jinja: Renderingdocstring
Expected behavior
Environment information
System: Windows 10
Python: cpython 3.10.11
Environment variables:
Installed packages:
mkdocstrings-python v2.0.0
Additional context
I have tried to pinpoint the issue in children.html.jinja, and find the following lines:
I validate the filtering part, and the results are correct, so the problem may be inside the rendering part. Comparing with the similar codes in the if-branch, there is a significant difference in the code:
Activity
pawamoy commentedon Dec 3, 2025
@T0nyX1ang thank you for the report and investigation! Your suggestion looks correct to me, I'll push a bugfix release later today 🙂
fix: Don't ignore filters when category grouping is disabled