8000 Do not coerce ids to integers · raonyguimaraes/github3.py@8436926 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8436926

Browse files
committed
Do not coerce ids to integers
1 parent 6425456 commit 8436926

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

github3/issues/milestone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def _update_attributes(self, mile):
3939
#: datetime object representing when the milestone was updated.
4040
self.updated_at = self._strptime(mile.get('updated_at'))
4141
#: string representing the milestone's ID.
42-
self.id = str(mile.get('id'))
42+
self.id = mile.get('id')
4343

4444
def _repr(self):
4545
return '<Milestone [{0}]>'.format(self)

tests/test_issues.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_str(self):
7878
assert str(self.m) == 'v1.0.0'
7979

8080
def test_id(self):
81-
assert self.m.id== '219754'
81+
assert self.m.id == 219754
8282

8383
def test_delete(self):
8484
self.response('', 204)

0 commit comments

Comments
 (0)
0