Hugo van Kemenade
328a778db8
gh-134357: Remove unused imports in tests ( #134340 )
2025-05-25 20:09:02 +00:00
Serhiy Storchaka
2602d8ae98
gh-71339: Use new assertion methods in tests (GH-129046)
2025-05-22 13:17:22 +03:00
sobolevn
4912b29166
gh-133210: Fix `test_pydoc` in `--without-doc-strings` mode ( #133271 )
2025-05-02 13:12:24 +03:00
Jelle Zijlstra
07b8d3117f
gh-132261: Store annotations at hidden internal keys in the class dict ( #132345 )
2025-04-10 21:13:26 -07:00
Jelle Zijlstra
dc6d66f44c
gh-105499: Merge typing.Union and types.UnionType ( #105511 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ken Jin <kenjin@python.org>
Co-authored-by: Carl Meyer <carl@oddbird.net>
2025-03-04 11:44:19 -08:00
Serhiy Storchaka
979d766209
gh-128772: Fix pydoc for methods with __module__ is None (GH-129177)
2025-02-04 16:25:49 +02:00
T. Wouters
d4544cb232
gh-128923: fix test_pydoc for object subclasses without `__module__` ( #128951 )
...
Fix pydoc's docclass() for classes inheriting from object without the `__module__` attribute, like `_testcapi.HeapType`.
2025-01-17 23:43:17 +01:00
Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)
474e419792
gh-41872: Fix quick extraction of module docstrings from a file in pydoc (GH-127520)
...
It now supports docstrings with single quotes, escape sequences,
raw string literals, and other Python syntax.
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-01-08 10:32:07 +00:00
Jelle Zijlstra
3480124321
gh-119180: Set the name of the param to __annotate__ to "format" ( #124730 )
2024-12-30 08:19:38 -08:00
Hood Chatham
1183e4ce2f
gh-127146: Emscripten clean up test suite ( #127984 )
...
Removed test skips that are no longer required as a result of Emscripten updates.
2024-12-17 07:48:23 +00:00
Jelle Zijlstra
78406382c9
gh-101552: Allow pydoc to display signatures in source format ( #124669 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-10-09 05:03:53 +00:00
sobolevn
9c7657f099
gh-113878: Add `doc` parameter to `dataclasses.field` (gh-114051)
...
If using `slots=True`, the `doc` parameter ends up in the `__slots__` dict. The `doc` parameter is also in the corresponding `Field` object.
2024-09-27 12:20:49 -04:00
Serhiy Storchaka
4606eff0aa
gh-122129: Improve support of method descriptors and wrappers in the help title (GH-122157)
2024-07-23 20:45:21 +03:00
Victor Stinner
e9f4d80fa6
gh-120417: Add #noqa: F401 to tests ( #120627 )
...
Ignore linter "imported but unused" warnings in tests when the linter
doesn't understand how the import is used.
2024-06-18 15:51:47 +00:00
Serhiy Storchaka
2cf47389e2
gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615)
...
Mocking only works if sys.modules['pydoc'] and pydoc are the same,
but some pydoc functions reload the module and change sys.modules.
Ensure that sys.modules['pydoc'] is always restored after the corresponding
tests.
2024-06-18 12:19:32 +03:00
Serhiy Storchaka
31d1d72d7e
gh-120541: Improve the "less" prompt in pydoc (GH-120543)
...
When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
2024-06-15 20:56:40 +03:00
Jelle Zijlstra
9b8611eeea
gh-119180: PEP 649 compiler changes ( #119361 )
2024-06-11 13:06:49 +00:00
Enrico Tröger
2080425154
bpo-37755: Use configured output in pydoc instead of pager (GH-15105)
...
If the Helper() class was initialized with an output, the topics, keywords
and symbols help still use the pager instead of the output.
Change the behavior so the output is used if available while keeping the
previous behavior if no output was configured.
2024-06-08 09:19:13 +00:00
Erlend E. Aasland
ea94b3b149
gh-116303: Skip test module dependent tests if test modules are unavailable ( #117341 )
2024-04-03 15:11:36 +02:00
Serhiy Storchaka
72cff8d8e5
gh-113942: Show functions implemented as builtin methods (GH-115306)
...
Pydoc no longer skips global functions implemented as builtin methods,
such as MethodDescriptorType and WrapperDescriptorType.
2024-02-26 20:29:49 +02:00
Eugene Toder
c0b0c2f201
gh-101860: Expose __name__ on property (GH-101876)
...
Useful for introspection and consistent with functions and other
descriptors.
2024-02-20 17:14:34 +02:00
Kirill Podoprigora
b9a9e3dd62
gh-107155: Fix help() for lambda function with return annotation (GH-107401)
2024-02-17 12:47:51 +00:00
Nikita Sobolev
ccc76c3e88
gh-108303: Move all `pydoc` related test files to new `test.test_pydoc` package ( #114506 )
2024-02-13 11:40:40 +01:00