Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Pylint fixes
  • Loading branch information
dargilco committed Apr 28, 2025
commit ebf4c210ca50af5272eef1ebb450a1977f3511f6
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ConnectionsOperations(ConnectionsOperationsGenerated):
:class:`~azure.ai.projects.aio.AIProjectClient`'s
:attr:`connections` attribute.
"""

@distributed_trace_async
async def get(self, name: str, *, include_credentials: Optional[bool] = False, **kwargs: Any) -> Connection:
"""Get a connection by name.
Expand All @@ -39,7 +39,5 @@ async def get(self, name: str, *, include_credentials: Optional[bool] = False, *

if include_credentials:
return await super()._get_with_credentials(name, **kwargs)
else:
return await super()._get(name, **kwargs)


return await super()._get(name, **kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,5 @@ def get(self, name: str, *, include_credentials: Optional[bool] = False, **kwarg
"""
if include_credentials:
return super()._get_with_credentials(name, **kwargs)
else:
return super()._get(name, **kwargs)


return super()._get(name, **kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ async def sample_connections_async() -> None:
connection = await project_client.connections.get(connection_name, include_credentials=True)
print(connection)


async def main():
await sample_connections_async()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ async def sample_indexes_async() -> None:
credential=DefaultAzureCredential(),
) as project_client:

print(f"Create Index `{index_name}` with version `{index_version}`, referencing an existing AI Search resource:")
print(
f"Create Index `{index_name}` with version `{index_version}`, referencing an existing AI Search resource:"
)
index = await project_client.indexes.create_or_update(
name=index_name,
version=index_version,
Expand Down
Loading