Skip to content

Commit 3be14cc

Browse files
committed
feat: Release public filter feature
1 parent ae7cc2d commit 3be14cc

File tree

1 file changed

+1
-5
lines changed
  • src/mkdocstrings_handlers/python/_internal

1 file changed

+1
-5
lines changed

src/mkdocstrings_handlers/python/_internal/config.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,11 +1088,7 @@ class PythonOptions(PythonInputOptions): # type: ignore[override,unused-ignore]
10881088
@classmethod
10891089
def coerce(cls, **data: Any) -> MutableMapping[str, Any]:
10901090
"""Create an instance from a dictionary."""
1091-
if "filters" in data:
1092-
# Non-insiders: transform back to default filters.
1093-
# Next: `if "filters" in data and not isinstance(data["filters"], str):`.
1094-
if data["filters"] == "public":
1095-
data["filters"] = _DEFAULT_FILTERS
1091+
if "filters" in data and not isinstance(data["filters"], str):
10961092
# Filters are `None` or a sequence of strings (tests use tuples).
10971093
data["filters"] = [
10981094
(re.compile(filtr.removeprefix("!")), filtr.startswith("!")) for filtr in data["filters"] or ()

0 commit comments

Comments
 (0)