vm: fix placeholder methods signatures in Features class

Some methods inherited from dict (pop and setdefault here) are covered
by placeholders raising NotImplementedError. Lets fix their signatures
(to match those of dict) to really get NotImplementedError, instead of
TypeError.
This commit is contained in:
Marek Marczykowski-Górecki 2017-04-14 23:11:43 +02:00
parent 643cef1e65
commit acaada3fd9
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -108,7 +108,7 @@ class Features(dict):
for key in self:
del self[key]
def pop(self):
def pop(self, _key, _default=None):
'''Not implemented
:raises: NotImplementedError
'''
@ -120,7 +120,7 @@ class Features(dict):
'''
raise NotImplementedError()
def setdefault(self):
def setdefault(self, _key, _default=None):
'''Not implemented
:raises: NotImplementedError
'''