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 hints to Game #824

Merged
merged 2 commits into from
Jan 18, 2017
Merged

Add Type hints to Game #824

merged 2 commits into from
Jan 18, 2017

Conversation

souravsingh
Copy link
Contributor

@souravsingh souravsingh commented Jan 17, 2017

Fixes a part of #808

@@ -23,7 +25,7 @@ def RPST(self):
T = self.scores[(D, C)][0]
return (R, P, S, T)

def score(self, pair):
def score(self, pair) -> pair:
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be more explicit to have:

def score(self, pair) -> Tuple[int, int]

Copy link
Member

@drvinceknight drvinceknight left a comment

Choose a reason for hiding this comment

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

👍

@marcharper marcharper merged commit 5bf6f10 into Axelrod-Python:master Jan 18, 2017
@souravsingh souravsingh deleted the types-game branch January 23, 2017 09:25
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.

None yet

3 participants