Fix some errors detected by mypy#100
Conversation
It is a |
it's half-right, but also half-wrong in the places where the definitions are used only for typechecking, this is what is wanted but in the ALL_TYPES_MAP, it's a lie: the runtime type of, say, ```python DefinitionLink = "LocationLink" ``` really is a string, regardless of annotation
|
@dimbleby Can I merge this? |
|
Sure, go for it. re the remaining errors in the |
picking off quite a few typechecking errors.
Some remarks
I haven't committed the re-generated code
I believe that
enable_recursive_aliaseswill soon be mypy default, so that seems a very reasonable thing to includeI haven't added
py.typed, or tried to update your github workflow to run mypyremaining errors are as follows:
where
lsp_types.LSPAny- but doing that for some reason causes test breakage"LspAny"in this piece of code suggests you already know that something's up