James Harr

Results 36 comments of James Harr

Honestly I think the API token system needs to be deprecated and replaced. Related to my comments in #2082: 1. The authentication value is both retrievable (via UI/API) and stored...

Thoughts on bumping to Pydantic v2? It's not 100% backwards compatible, but they did improve performance a decent amount. Some libraries like Beanie will support both v1 and v2 and...

I've tripped over this as well. IMO: - The best thing to do here is to respect the Pydantic protected namespaces and choose another field name for `model_flags`. Maybe `instance_flags`...

I did a quick POC of how DiffSync could rename model_flags, keep backwards compatibility, but also generate a useful deprecation warning for DiffSync users. ```python import warnings from pydantic import...

FYI, this might be a useful pyproject.toml snippet for people ```toml [tool.pytest.ini_options] filterwarnings = [ # Pydantic 2.x considers DiffSync's model_flags field to be part of a protected # namespace;...

> how would this help if I'd like to remove such errors from my containers console logs? What I posted is a work around to silence warnings during tests run...