diff --git a/.gitignore b/.gitignore index 849ddff..d1584c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ dist/ +**/__pycache__ +credentials diff --git a/Justfile b/Justfile index c0c1b39..17da51f 100644 --- a/Justfile +++ b/Justfile @@ -8,6 +8,6 @@ build: poetry build publish: - poetry publish --build + poetry publish --build --username __token__ --password $( 0 or len(self.details) > 0 ) res = f"{indent}{pretty_msg}\n" @@ -405,6 +405,7 @@ def validate(x: JsonValue, cls: type[T]) -> T: "code.namespace": validate.__module__, }, ) as s: - s.set_attribute("validation.target", cls.__qualname__) + # ayush: union types dont have a `__qualname__` attr + s.set_attribute("validation.target", getattr(cls, "__qualname__", repr(cls))) return untraced_validate(x, cls)