Closed as not planned
Closed as not planned
Description
A simplification of some old code I am trying to add mypy to:
class Base(object):
def foo(self):
# type: () -> None
a = self.static_foo()
class SubClass(Base):
static_foo = staticmethod(lambda: 5)
Results in the error:
error: Incompatible types in assignment (expression has type "staticmethod", base class "Job" defined the type as "Callable[[], int]")
Oddly, as far as I can tell, static_foo
is not actually defined on the base class.
This is using Dropbox's mypy setup, with --strict-optional. I am actually not sure which version we're on, but can look it up and edit this issue.