Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

To be released
==============
* Make the PySide2 version compatibility constraint optional through the `pyside2` extra.
* remove `@staticmethod` applied to functions
* fix `QTabBar.setButtonWidget()` to accept `None` as a widget argument
* fix `QTreeWidget.setItemWidget()` and `QListWidget.setItemWidget()` to accept `None` as a widget argument
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,18 @@ As a derived work from PySide2, the stubs are delivered under the LGPL v2.1 . Se

# Installation

Simply install the official PySide2-stubs with pip:
Install the stubs with pip:

$ pip install PySide2-stubs

To have the dependency resolver enforce the declared PySide2 version
compatibility constraints, select the `pyside2` extra:

$ pip install "PySide2-stubs[pyside2]"

Selecting this extra may also cause pip to install or change PySide2 as a side
effect of satisfying those constraints.

Or use the latest version from Github:

$ pip install git+https://github.com/python-qt-tools/PySide2-stubs
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ package_dir =
python_requires = >=3.6
install_requires =
mypy>=0.940
PySide2>=5.11.0

[options.package_data]
* = *.pyi
Expand All @@ -37,5 +36,7 @@ exclude =


[options.extras_require]
pyside2 =
PySide2>=5.11.0
dev =
pytest
Loading