Skip to content

Remove the target entry from texture docstrings - #2993

Merged
eruvanos merged 1 commit into
pythonarcade:developmentfrom
mmporong:docs-remove-legacy-target-arg
Oct 30, 2026
Merged

eruvanos merged 1 commit into
pythonarcade:developmentfrom
mmporong:docs-remove-legacy-target-arg

Conversation

@mmporong

Copy link
Copy Markdown
Contributor

The docstrings of Texture2D, TextureArray, OpenGLTexture2D and OpenGLTextureArray list a target argument ("The texture type (Ignored. Legacy)"), but none of these constructors take target any more, and they have no **kwargs, so target=... raises TypeError. This removes the stale entry from the four docstrings. No code changes.

I found it with an automated comparison of docstring argument names against the constructor signatures, and checked that no texture constructor or Context.texture()/texture_array() in the OpenGL and WebGL backends accepts target.

Texture2D, TextureArray and their OpenGL backends no longer accept a
target argument, but their docstrings still listed it as "Ignored.
Legacy". Passing target= raises TypeError.
@eruvanos
eruvanos merged commit b2ee367 into pythonarcade:development Oct 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants