From 63c485180be21e74d6048059e5c847e83e95f270 Mon Sep 17 00:00:00 2001 From: tdstein Date: Fri, 13 Sep 2024 14:49:06 -0400 Subject: [PATCH] apply formatting --- src/posit/connect/content.py | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/src/posit/connect/content.py b/src/posit/connect/content.py index eaa0a208..7c80aff9 100644 --- a/src/posit/connect/content.py +++ b/src/posit/connect/content.py @@ -445,8 +445,7 @@ def find( name: Optional[str] = None, owner_guid: Optional[str] = None, include: Optional[ - Literal["owner", "tags", "vanity_url"] - | list[Literal["owner", "tags", "vanity_url"]] + Literal["owner", "tags", "vanity_url"] | list[Literal["owner", "tags", "vanity_url"]] ] = None, ) -> List[ContentItem]: """Find content matching the specified criteria. @@ -479,9 +478,7 @@ def find( *, name: Optional[str] = None, owner_guid: Optional[str] = None, - include: Optional[ - Literal["owner", "tags"] | list[Literal["owner", "tags"]] - ] = None, + include: Optional[Literal["owner", "tags"] | list[Literal["owner", "tags"]]] = None, ) -> List[ContentItem]: """Find content matching the specified criteria. @@ -508,13 +505,9 @@ def find( ... @overload - def find( - self, include: Optional[str | list[Any]], **conditions - ) -> List[ContentItem]: ... + def find(self, include: Optional[str | list[Any]], **conditions) -> List[ContentItem]: ... - def find( - self, include: Optional[str | list[Any]] = None, **conditions - ) -> List[ContentItem]: + def find(self, include: Optional[str | list[Any]] = None, **conditions) -> List[ContentItem]: """Find content matching the specified conditions. Returns @@ -548,8 +541,7 @@ def find_one( name: Optional[str] = None, owner_guid: Optional[str] = None, include: Optional[ - Literal["owner", "tags", "vanity_url"] - | list[Literal["owner", "tags", "vanity_url"]] + Literal["owner", "tags", "vanity_url"] | list[Literal["owner", "tags", "vanity_url"]] ] = None, ) -> Optional[ContentItem]: """Find first content result matching the specified conditions. @@ -580,9 +572,7 @@ def find_one( *, name: Optional[str] = None, owner_guid: Optional[str] = None, - include: Optional[ - Literal["owner", "tags"] | list[Literal["owner", "tags"]] - ] = None, + include: Optional[Literal["owner", "tags"] | list[Literal["owner", "tags"]]] = None, ) -> Optional[ContentItem]: """Find first content result matching the specified conditions.