flax icon indicating copy to clipboard operation
flax copied to clipboard

Pytype attribute generics tracker

Open jheek opened this issue 5 years ago • 3 comments

Pytype currently doesn't support Generic types class attributes:

class Foo:
  bar: T

As a workaround we use Any for the attribute instead. This workaround should be reverted once the functionality is implemented

jheek avatar Nov 20 '20 10:11 jheek

@jheek -- Is there a public bug we can reference tracking the current limitation in pytype?

avital avatar Nov 26 '20 12:11 avital

@jheek is this still relevant?

marcvanzee avatar Apr 27 '22 08:04 marcvanzee

Yes we are still using this workaround

jheek avatar Apr 28 '22 12:04 jheek