snorkel-team / snorkel

A system for quickly generating training data with weak supervision
https://snorkel.org
Apache License 2.0
5.81k stars 857 forks source link

Ignore mypy error when overwriting `label_dict` with new type #1699

Closed zexuan-zhou closed 2 years ago

zexuan-zhou commented 2 years ago

See code

zexuan-zhou commented 2 years ago

@rsmith49 I think this is a better solution to deal with the mypy error on overwriting the type of invariant variable