- 
    Bug 
- 
    Resolution: Fixed
- 
     Not Evaluated Not Evaluated
- 
    6.5.0
- 
    None
- 
    Python 3.9
 Windows 10
 April 6th wheels:
 https://download.qt.io/snapshots/ci/pyside/dev/f6d5548a235aa2617a8b286a6523dc53d6da7406/split_wheels/shiboken6-6.5.0a1.dev1680694534-cp37-abi3-win_amd64.whl
 https://download.qt.io/snapshots/ci/pyside/dev/f6d5548a235aa2617a8b286a6523dc53d6da7406/split_wheels/PySide6_Essentials-6.5.0a1.dev1680694534-cp37-abi3-win_amd64.whlPython 3.9 Windows 10 April 6th wheels: https://download.qt.io/snapshots/ci/pyside/dev/f6d5548a235aa2617a8b286a6523dc53d6da7406/split_wheels/shiboken6-6.5.0a1.dev1680694534-cp37-abi3-win_amd64.whl https://download.qt.io/snapshots/ci/pyside/dev/f6d5548a235aa2617a8b286a6523dc53d6da7406/split_wheels/PySide6_Essentials-6.5.0a1.dev1680694534-cp37-abi3-win_amd64.whl
- 
        15b964d00 (dev), 165232a09 (6.5), 1ae272c38 (dev), f32c87d71 (6.7), 2d18d70ea (tqtc/lts-6.5)
`types.NoneType` is an unknown import in Python 3.9 and below.

There's a few ways to handle this while keeping Python 3.9 support:
1. Use `_typeshed.NoneType`. typeshed is bundled with type checkers (mypy, pyright, pytype, pycharm) and so should be available. This overload is also marked as stable.
2. Implement your own overload like typeshed does: https://github.com/python/typeshed/blob/1c0500a57050815102c702efd053e09770a5ee88/stdlib/_typeshed/__init__.pyi#L270-L277
3. Use `type[None]` instead.
- relates to
- 
                    PYSIDE-2685 Error in stub files: Variables are not allowed in type expressions -         
- Closed
 
-         
- resulted from
- 
                    PYSIDE-2278 Missing import NoneType in QtWidgets.pyi -         
- Closed
 
-         
| For Gerrit Dashboard: PYSIDE-2284 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 471481,4 | Type hints: Fix missing NoneType import | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 471645,2 | Type hints: Fix missing NoneType import | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 555365,4 | Fix missing NoneType import, amended | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 556314,2 | Fix missing NoneType import, amended | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 556429,2 | Fix missing NoneType import, amended | tqtc/lts-6.5 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 | 
