Refactor (typing): add annotations in dialect/parser/schema modules#7444
Refactor (typing): add annotations in dialect/parser/schema modules#7444OutSquareCapital wants to merge 9 commits intotobymao:mainfrom
Conversation
…d_timetostr_or_tochar`
…uments + format dialect module
|
@OutSquareCapital I think wherever we expect |
|
If we have a known set of types expected to be used in the |
|
I think it's ok to go for |
|
I think that's a good idea. |
This typing PR annotate numerous functions/methods from core modules with more precise types.
Going from
x: listtox: list[Any]or evenx: list[object]may seem pointless, but strict type checkers like basedpyright withALLrules, or pylance withstrict mode=on, will complain on non-defined generic types, both at the definition AND call sites (hence for end users of the library).For example: