Comments (2)
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.
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)
- Add startup callback and shutdown callback traits for RESTBot HOT 1
- Forum channels unrecognised HOT 2
- Localization attribute missing for CommandChoice HOT 1
- typing context not exiting after a webhook is called HOT 2
- Asyncio SSLProto error HOT 3
- Add support for comparing roles HOT 1
- Editing the icon of a server fails HOT 1
- Components shutdown before completion of event listeners
- Option to only cache the bot member HOT 1
- Consider removing upper bound constraint on python version HOT 4
- Support editing community features in `edit_guild` endpoint
- Implement monetization
- Implement default select values
- Specialize InteractionCreateEvent
- Consistent BitEnum Naming HOT 1
- Switch to msgspec HOT 4
- Support sending voice messages HOT 2
- Consider using mkdocs material HOT 3
- `Member.joined_at` is now nullable due to breaking API change
- Sync `guilds.GuildFeature` to Official API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hikari.