Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help Documentation doesn't load #11259

Closed
1 task done
InTheCloudDan opened this issue Jan 11, 2025 · 1 comment
Closed
1 task done

Help Documentation doesn't load #11259

InTheCloudDan opened this issue Jan 11, 2025 · 1 comment
Assignees
Labels
bug V2 Bug related to Pydantic V2

Comments

@InTheCloudDan
Copy link

Initial Checks

  • I confirm that I'm using Pydantic V2

Description

Error fetching docs for pydantic: Error: Command failed: /home/.venv/bin/python -c '
import importlib
importlib.import_module("pydantic")
help("pydantic")
'
Traceback (most recent call last):
  File "<string>", line 4, in <module>
    help("pydantic")
    ~~~~^^^^^^^^^^^^
  File "<frozen _sitebuiltins>", line 103, in __call__
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pydoc.py", line 1992, in __call__
    self.help(request)
    ~~~~~~~~~^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pydoc.py", line 2050, in help
    elif request: doc(request, 'Help on %s:', output=self._output, is_cli=is_cli)
                  ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pydoc.py", line 1764, in doc
    pager(render_doc(thing, title, forceload), f'Help on {what!s}')
          ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pydoc.py", line 1749, in render_doc
    return title % desc + '\n\n' + renderer.document(object, name)
                                   ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
.....

lib/python3.13/pydoc.py", line 536, in document
    if inspect.isroutine(object): return self.docroutine(*args)
                                         ~~~~~~~~~~~~~~~^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pydoc.py", line 1574, in docroutine
    pname = parentname(imfunc, mod)
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pydoc.py", line 245, in parentname
    return object.__module__ + '.' + name
           ~~~~~~~~~~~~~~~~~~^~~~~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

I've also just tried it with

import pydantic
help(pydantic)

Example Code

Start Repl
----
import pydantic
help(pydantic)

Python, Pydantic & OS Version

pydantic version: 2.10.4
        pydantic-core version: 2.27.2
          pydantic-core build: profile=release pgo=false
                 install path: /home/.venv/lib/python3.13/site-packages/pydantic
               python version: 3.13.1 (main, Dec  3 2024, 17:59:52) [Clang 16.0.0 (clang-1600.0.26.4)]
                     platform: macOS-15.2-arm64-arm-64bit-Mach-O
             related packages: pydantic-settings-2.7.1 typing_extensions-4.12.2
                       commit: unknown
@InTheCloudDan InTheCloudDan added bug V2 Bug related to Pydantic V2 pending Is unconfirmed labels Jan 11, 2025
@Viicos Viicos self-assigned this Jan 13, 2025
@Viicos Viicos removed the pending Is unconfirmed label Jan 13, 2025
@Viicos
Copy link
Member

Viicos commented Jan 13, 2025

Opened an upstream issue: python/cpython#128772.

@Viicos Viicos closed this as completed Jan 13, 2025
@Viicos Viicos marked this as a duplicate of #11639 Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug V2 Bug related to Pydantic V2
Projects
None yet
Development

No branches or pull requests

2 participants