Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type annotations compatible with mypy/pyright #533

Open
koteyur opened this issue May 8, 2023 · 1 comment
Open

Add type annotations compatible with mypy/pyright #533

koteyur opened this issue May 8, 2023 · 1 comment
Labels
SDK Issue pertains to the SDK itself and not specific to any service

Comments

@koteyur
Copy link

koteyur commented May 8, 2023

Hi, could you please add type annotations in the format which would mypy and/or pyright recognize?

I've tried both mypy/pyright and their stubgens, unfortunately, none of them is able to parse type annotations in format of (core/models/instance.py):

:param defined_tags:
    The value to assign to the defined_tags property of this Instance.
:type defined_tags: dict(str, dict(str, object))

It looks like, most of OCI SDK code is generated. If so, it should be possible to adopt generation process in order to support proper type annotations.

@KartikShrikantHegde KartikShrikantHegde added the SDK Issue pertains to the SDK itself and not specific to any service label May 15, 2023
@bhagwatvyas
Copy link
Member

@koteyur thank you, we're investigating into supporting typing in the OCI SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SDK Issue pertains to the SDK itself and not specific to any service
Projects
None yet
Development

No branches or pull requests

3 participants