News for hackers. Stuff that matters.
Re:Python’s “type hints” are a bit of a disappointment to me by toolslive on Friday April 22, 2022 @07:43AM (#31120430)
> JSON = Union[....]

This does not define the type of a valid json object. (fe None is not a valid json object, neither is '')

Re:Python’s “type hints” are a bit of a disappointment to me by ImprobableTruth on Friday April 22, 2022 @10:31AM (#31122024)
A decade or so ago JSON was changed so that JSON text doesn't have to be an object, it can also be a value. 'null' (or say, '5') is therefore legal JSON.
Re:Python’s “type hints” are a bit of a disappointment to me by toolslive on Friday April 22, 2022 @11:03AM (#31122472)