aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/support
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/PySide2/support')
-rw-r--r--sources/pyside2/PySide2/support/deprecated.py2
-rw-r--r--sources/pyside2/PySide2/support/generate_pyi.py8
2 files changed, 2 insertions, 8 deletions
diff --git a/sources/pyside2/PySide2/support/deprecated.py b/sources/pyside2/PySide2/support/deprecated.py
index 8538826e4..57f33d9e2 100644
--- a/sources/pyside2/PySide2/support/deprecated.py
+++ b/sources/pyside2/PySide2/support/deprecated.py
@@ -64,7 +64,7 @@ class PySideDeprecationWarningRemovedInQt6(Warning):
def constData(self):
cls = self.__class__
- name = cls.__name__
+ name = cls.__qualname__
warnings.warn(dedent("""
{name}.constData is unpythonic and will be removed in Qt For Python 6.0 .
Please use {name}.data instead."""
diff --git a/sources/pyside2/PySide2/support/generate_pyi.py b/sources/pyside2/PySide2/support/generate_pyi.py
index f92367c82..af9f4d4f5 100644
--- a/sources/pyside2/PySide2/support/generate_pyi.py
+++ b/sources/pyside2/PySide2/support/generate_pyi.py
@@ -1,7 +1,7 @@
# This Python file uses the following encoding: utf-8
#############################################################################
##
-## Copyright (C) 2019 The Qt Company Ltd.
+## Copyright (C) 2020 The Qt Company Ltd.
## Contact: https://www.qt.io/licensing/
##
## This file is part of Qt for Python.
@@ -169,12 +169,6 @@ class Formatter(Writer):
else:
self.print("{spaces}class {class_str}: ...".format(**locals()))
yield
- if "<" in class_name:
- # This is happening in QtQuick for some reason:
- ## class QSharedPointer<QQuickItemGrabResult >:
- # We simply skip over this class.
- self.outfile.seek(here)
- self.outfile.truncate()
@contextmanager
def function(self, func_name, signature, modifier=None):