Open benmoran56 opened 2 months ago
Starting on shapes.
EDIT: finished shapes
First pass of input
module is complete. input.base
should now be fully type-hinted and documented, but will need to be checked if the docstrings are all building and showing.
Platform specific submodules are not not type-hinted yet, but all existing docstrings have been updated. This will need to be fleshed out in a later pass.
app
and canvas
base classes have been completed.
finished event
Finished sprite
.
Starting on lib
Finished the model
module.
Working on media
now.
First pass of media
is done.
TL;DR: pyglet.libs
is up for grabs
pyglet.libs
to anyone who'd like to try While reviewing my open issues v.s. issues here, I stumbled upon here and it struck a humble chord:
Maybe someone can obviate in PlatformEventLoop.notify's docstring whether this is a method that user code should ever call?
Do all docstrings end up on the online documentation, or is there a syntax which excludes a docstring for when it's too low level a class member?
Okay, read better above now, this is out of scope.
pyglet has gone through several documentation build tools in its life, leading to variation in the docstrings across the library. Currently we use Sphinx to build the docs, which is capable of building a variety of formats. This works for the most part but, with recent additions of type hints across the library, there is a lot of inconsistency with how the API docs are rendering.
The purpose of this ticket is to get the ball rolling on a full review and refactoring of the docstrings. This can be done in multiple parts.
rst
style, but will potentially change. This link is here, but will need to be updated after 1. is complete: https://pyglet.readthedocs.io/en/latest/internal/doc.html