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 strictly typed responses; fix circular dependencies; improve namespaces #28

Merged
merged 9 commits into from
Oct 6, 2017

Conversation

dnl-blkv
Copy link
Contributor

No description provided.

@dnl-blkv dnl-blkv self-assigned this Sep 23, 2017
@OGKevin OGKevin added this to the v0.12.0 milestone Sep 23, 2017
@dnl-blkv dnl-blkv changed the title 27 strictly typed response [WIP] Add strictly typed responses; fix circular dependencies; improve namespaces Sep 26, 2017
Copy link
Contributor

@OGKevin OGKevin left a comment

Choose a reason for hiding this comment

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

🥈 questions 🌚

:rtype: None
"""

import datetime
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we importing inside a function ?

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 is an exception made for the initializer to make sure no code from within the module is executed before it is needed. Reducing chances of circular deps!

@@ -29,25 +29,25 @@ class InstallationAdapter(converter.JsonAdapter):
@classmethod
def deserialize(cls, target_class, array):
"""
:type target_class: model.Installation|type
:type target_class: core.Installation|type
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this notation used every where else in this SDK as well ? 🙊

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Notation, as in |type? Yes, absolutely! For long time already :)
Same goes for module.Class! 👍

@dnl-blkv
Copy link
Contributor Author

dnl-blkv commented Oct 6, 2017

@OGKevin all questions answered
@andrederoos please take a look :D

@andrederoos andrederoos merged commit 33f5d47 into develop Oct 6, 2017
@andrederoos andrederoos deleted the 27-strictly-typed-response branch October 6, 2017 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants