GithubHelp home page GithubHelp logo

Comments (2)

 avatar commented on May 24, 2024

Can confirm that this no longer works with our set up using v0.9.0.

$ nox -spdoc
nox > Running session pdoc
nox > Creating virtual environment (virtualenv) using python in .nox/pdoc
nox > pip install -r requirements.txt
nox > pip install pdoc3~=0.9.0
nox > pip install sphobjinv
nox > python docs/patched_pdoc.py hikari --html --output-dir public --template-dir docs --force
/home/me/code/hikari/.nox/pdoc/lib/python3.8/site-packages/aiohttp/helpers.py:107: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def noop(*args, **kwargs):  # type: ignore
Traceback (most recent call last):
  File "docs/patched_pdoc.py", line 9, in <module>
    main()
  File "docs/patched_pdoc.py", line 5, in main
    cli.main()
  File "/home/me/code/hikari/.nox/pdoc/lib/python3.8/site-packages/pdoc/cli.py", line 537, in main
    modules = [pdoc.Module(module, docfilter=docfilter,
  File "/home/me/code/hikari/.nox/pdoc/lib/python3.8/site-packages/pdoc/cli.py", line 537, in <listcomp>
    modules = [pdoc.Module(module, docfilter=docfilter,
  File "/home/me/code/hikari/.nox/pdoc/lib/python3.8/site-packages/pdoc/__init__.py", line 640, in __init__
    self.doc[name] = Class(name, self, obj)
  File "/home/me/code/hikari/.nox/pdoc/lib/python3.8/site-packages/pdoc/__init__.py", line 952, in __init__
    for _name, obj in _getmembers_all(self.obj)
  File "/home/me/code/hikari/.nox/pdoc/lib/python3.8/site-packages/pdoc/__init__.py", line 907, in _getmembers_all
    names.update(_get_type_hints(obj).keys())
  File "/usr/lib/python3.8/typing.py", line 1232, in get_type_hints
    value = _eval_type(value, base_globals, localns)
  File "/usr/lib/python3.8/typing.py", line 270, in _eval_type
    return t._evaluate(globalns, localns)
  File "/usr/lib/python3.8/typing.py", line 518, in _evaluate
    eval(self.__forward_code__, globalns, localns),
  File "<string>", line 1, in <module>
NameError: name 'datetime' is not defined

from hikari.

 avatar commented on May 24, 2024

Looks like this is blocked by pdoc3/pdoc#245, which may or may not be a very simple fix, so for now I will leave this open and see what happens. :)

from hikari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.