Azure-sdk-for-python: aka.ms/pysdkmodels link broken/TODO

Created on 4 Sep 2018  路  7Comments  路  Source: Azure/azure-sdk-for-python

Most helpful comment

@boumenot @akx I wrote the article, please let me know what you think before I close the issue :)
Thank you!

All 7 comments

Hi @akx
Ok, that's on me :/. I postponed, and postponed and then forgot.... Put it back on my TODO. Sorry about that.

Friendly bump. I was excited to read how to fix this.

I just followed the link today, and found that it was a TODO.

@boumenot @akx I wrote the article, please let me know what you think before I close the issue :)
Thank you!

Thank you :)

Wouldn't Solution 3 be to import the model from the package for the particular API version, for e.g. code completion or typing?

@akx , but this solution requires that you know the API version you are targeting. We try to make this as hidden as possible, like an implementation detail. Because on public azure you shouldn't care, and on Azure Stack / Government you should use a "profile" (which is still hiding the API version).

So it will technically work, but I'm not a huge fan to document it as a solution. Or at least I need a lot of warning "If you understand why you're doing that"

Check. Well, I'll pinky swear I'll keep those imports only within if typing.TYPE_CHECKING: blocks. Is that fine? :D

Sounds good to me :). I will add an advanced version with a lot of warnings still.
Glad hearing you talk about typing by the way ;)

Was this page helpful?
0 / 5 - 0 ratings