News for hackers. Stuff that matters.
Re:Python 3 Types in the Wild: A Tale of Two Type Systems [pdf] by guram11 on Thursday April 15, 2021 @12:52AM (#26816306)
curious what do you do when each type systems agree and disagree with the other?
Re:Python 3 Types in the Wild: A Tale of Two Type Systems [pdf] by Mehdi2277 on Thursday April 15, 2021 @05:16AM (#26818061)
You determine which is right and report a bug in the other. After that you add a type ignore statement to keep the wrong one happy until the issue is resolved. My current workplace I have two type checkers enabled (mypy/pyright) and that’s our way of dealing with it.