Sveinung Gundersen

Results 30 comments of Sveinung Gundersen

> Can you try with the latest version installed? (Or check IF you have it globally installed `why primitive`) I installed the latest version of primitive from the github repo...

> latest version of primitive from the github repo I have version 1.3.0 installed (on a Mac).

> (https://github.com/fogleman/primitive) After digging a bit I see now that I am not using my globally installed version of `primitive` at all. Rather, the `sqip-plugin-primitive` package is building it's own...

Some immediate thoughts, given my limited knowledge of the `pydantic` source code: I believe one workaround could be to define a variant of `Union` within pydantic, e.g. `OrderedUnion`. This would...

Come to think of it now, the `pydantic` bug as described here is relatively minor as you would need to: 1. use `GenericModel` 2. have type coercion logic that depends...

An illustration on how the Python issue might affect `pydantic` even if it is not due to a `pydantic` bug per se: ```python from pydantic import BaseModel from typing import...

@Stewori: I am trying to follow the history (in `typing` and elsewhere) of the once suggested replacements of `issubclass` and `isinstance` for types, partly implemented in https://github.com/python/typing/pull/207, which was replaced...

> @sveinugu , what about mypy? Most static type checkers use mypy hence it can be used in dynamic type checks too. Thanks for the feedback. I was under the...

> @sveinugu , well, mypy can not directly check types in runtime (states by one of maintainers). Nevertheless, there are several tricks: > > 1. You can create a temporary...

@sydney-runkle I don't think this should be closed, as it is still relevant for Pydantic v2. Perhaps we should even open another issue, as there are really two issues at...