python / python/typeshed

Add `pyqtgraph` stub

Open
#14,881 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.1k
Forks
2.1k
Avg merge
1d 19h
Merged PRs (30d)
82

Description

The pyqtgraph library has some dynamically inherited methods for some classes, which make my linter and type checker mad.

For example, the GraphicsLayoutWidget is a PyQt widget, which has a GraphicsLayout as its central item. For convenience, it then adds a bunch of methods from the GraphicsLayout class to itself, which are then missed by the type checker.

That is why I would like to request to add the stub files for this third-party library.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how typeshed represents third-party Python libraries and the public API of pyqtgraph, especially GraphicsLayoutWidget and its dynamically inherited methods. Done means adding usable stub files for the requested library so type checkers can recognize those methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.