Skip to content

Commit 071011e

Browse files
committed
Merge pull request #50 from The-Compiler/py3-doc-fix
Fix building of docs on python3.
2 parents 7af8faf + 2aa58da commit 071011e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pytestqt/qt_compat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ def __call__(self, *args, **kwargs):
9898
def __getattr__(cls, name):
9999
if name in ('__file__', '__path__'):
100100
return '/dev/null'
101-
elif name == '__name__':
101+
elif name in ('__name__', '__qualname__'):
102102
return name
103+
elif name == '__annotations__':
104+
return {}
103105
else:
104106
return Mock()
105107

0 commit comments

Comments
 (0)