Improve types of staticmethod and classmethod (#609)

Fixes #318
This commit is contained in:
Yegor Roganov
2016-10-16 00:17:17 +03:00
committed by Guido van Rossum
parent 2d8ff30e7a
commit e4073e385a
2 changed files with 4 additions and 4 deletions

View File

@@ -23,8 +23,8 @@ _T2 = TypeVar('_T2')
_T3 = TypeVar('_T3')
_T4 = TypeVar('_T4')
staticmethod = object() # Only valid as a decorator.
classmethod = object() # Only valid as a decorator.
class staticmethod: pass # Special, only valid as a decorator.
class classmethod: pass # Special, only valid as a decorator.
class object:
__doc__ = ... # type: str