python-record-api icon indicating copy to clipboard operation
python-record-api copied to clipboard

String literals must not be treated as separate types

Open rgommers opened this issue 3 years ago • 1 comments

Strings are things like column names; there is no point treating those as separate types, it gives a huge amount of pollution in the generated type annotations. Example: typing/pandas.core.frame.py has 10,000+ lines for __getitem__/__setitem__ overloads.

Related, issue to make results more interpretable: gh-71

rgommers avatar Dec 15 '21 16:12 rgommers

This issue seems more relevant for the dataframe analysis. For array analysis, treating strings as unique was useful to see which kwarg values were provided by downstream libraries.

kgryte avatar Dec 15 '21 18:12 kgryte