From e42e2793f39038bb8ec0150bd101f5b2c2f975d3 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Tue, 4 Mar 2025 12:37:45 -0700 Subject: [PATCH] Fix docstrings from #395 --- packages/smithy-core/src/smithy_core/schemas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/smithy-core/src/smithy_core/schemas.py b/packages/smithy-core/src/smithy_core/schemas.py index 1b59c733d..f2753caa0 100644 --- a/packages/smithy-core/src/smithy_core/schemas.py +++ b/packages/smithy-core/src/smithy_core/schemas.py @@ -130,7 +130,7 @@ def get_trait[T: "Trait"](self, t: type[T]) -> T | None: ... def get_trait(self, t: ShapeID) -> "Trait | DynamicTrait | None": ... def get_trait(self, t: "type[Trait] | ShapeID") -> "Trait | DynamicTrait | None": - """Get a trait based on it's ShapeID or class. + """Get a trait based on its ShapeID or class. :returns: A Trait if the trait class is known, a DynamicTrait if it isn't, or None if the trait is not present on the Schema. @@ -155,7 +155,7 @@ def expect_trait[T: "Trait"](self, t: type[T]) -> T: ... def expect_trait(self, t: ShapeID) -> "Trait | DynamicTrait": ... def expect_trait(self, t: "type[Trait] | ShapeID") -> "Trait | DynamicTrait": - """Get a trait based on it's ShapeID or class. + """Get a trait based on its ShapeID or class. :returns: A Trait if the trait class is known, a DynamicTrait if it isn't. """