JelleZijlstra / autotyping

Automatically add simple type annotations to your code
215 stars 18 forks source link

Infer `"x" % ...` as being a string #28

Closed JelleZijlstra closed 1 year ago

JelleZijlstra commented 2 years ago

We already do this for str.format: https://github.com/JelleZijlstra/autotyping/blob/master/autotyping/autotyping.py#L536

JelleZijlstra commented 2 years ago

Similarly, we can infer that the following always return a bool: