Skip to content

Commit

Permalink
apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Sep 13, 2024
1 parent 3e75511 commit 63c4851
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/posit/connect/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 63c4851

Please sign in to comment.