Skip to content

Conversation

@seankane-msft
Copy link
Contributor

No description provided.

@seankane-msft
Copy link
Contributor Author

/azp run python - containerregistry - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"

def prepare_request(next_link=None):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this method is the same as the sync prepare_request, would it be possible to place this in a shared base class?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably is, this all had to be copied from the generated code. I'll open an issue to get this done over the next sprint. Thanks for the rec. #17817

error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"

def prepare_request(next_link=None):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment, about potentially sharing code

Copy link
Contributor

@kristapratico kristapratico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know the story behind the gen code copy, but assume there is an issue open for it? LGTM


class ContainerRepositoryClient(ContainerRegistryBaseClient):
def __init__(self, endpoint: str, repository: str, credential: "AsyncTokenCredential", **kwargs) -> None:
def __init__(self, endpoint: str, repository: str, credential: "AsyncTokenCredential", **kwargs: Dict[str, Any]) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think Dict[str, Any] is wrong for **kwargs, but I think I've generally seen this documented as **Any in other libraries.

Copy link
Member

@swathipil swathipil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like Krista left the small nits that I was going to nit, so deleted them, but o/w LGTM

@seankane-msft
Copy link
Contributor Author

I don't know the story behind the gen code copy, but assume there is an issue open for it? LGTM

@kristapratico yes #17817 . The gen code copy had to happen because the link parsing isn't supported by the current autorest, but is in the works.

@seankane-msft
Copy link
Contributor Author

/check-enforcer evaluate

@seankane-msft seankane-msft merged commit 160e3ed into Azure:master Apr 6, 2021
@seankane-msft seankane-msft deleted the acr-pageable branch April 6, 2021 11:38
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this pull request Feb 9, 2022
Adding xms ids for Blockchain (Azure#17714)

* Adding xms-ids for Blockchain

* Update readme.md

* Update readme.python.md

Co-authored-by: Yuchao Yan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants