Make pylint shut up with _UNSET object.
This commit is contained in:
parent
3f02451828
commit
3c2e584c2a
@ -53,4 +53,4 @@ defining-attr-methods=__init__,__new__,setUp
|
||||
max-args=10
|
||||
|
||||
[TYPECHECK]
|
||||
ignored-classes=WebElementWrapper,AnsiCodes
|
||||
ignored-classes=WebElementWrapper,AnsiCodes,UnsetObject
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user