Make pylint shut up with _UNSET object.

This commit is contained in:
Florian Bruhin 2014-09-24 07:07:31 +02:00
parent 3f02451828
commit 3c2e584c2a
2 changed files with 12 additions and 2 deletions

View File

@ -53,4 +53,4 @@ defining-attr-methods=__init__,__new__,setUp
max-args=10
[TYPECHECK]
ignored-classes=WebElementWrapper,AnsiCodes
ignored-classes=WebElementWrapper,AnsiCodes,UnsetObject

View File

@ -26,7 +26,17 @@ import functools
from PyQt5.QtCore import QCoreApplication, QObject
_UNSET = object()
class UnsetObject:
"""Class for an unset object.
Only used (rather than object) so we can tell pylint to shut up about it.
"""
__slots__ = ()
_UNSET = UnsetObject()
class ObjectRegistry(collections.UserDict):