Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible bounds on type variable when using unbound method with map() #573

Open
besfahbod opened this issue Nov 16, 2022 · 0 comments
Open

Comments

@besfahbod
Copy link

Given:

list(map(str.strip, fields))

We get this error:

E         Cannot call overloaded function (code: incompatible_call)
E             In overload (func: (~_T1, /) -> ~_S, iter1: collections.abc.Iterable[~_T1], /) -> map[~_S]
E               Cannot resolve type variables
E                     Incompatible bounds on type variable
E                       str is not a literal
E                         LiteralString >= ~_T1
E                         str <= ~_T1
E
E
E         In /home/[...] at line 77
E           77:             list(map(str.strip, fields))
E                                ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant