Skip to content

Commit 0aeb019

Browse files
committed
Replaces integer with int in rtypes.
Uses the command: ag -l 'rtype: integer' | xargs sed -i .bak 's/rtype: integer/rtype: int/g'
1 parent dadca4a commit 0aeb019

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/google-cloud-datastore/google/cloud/datastore

packages/google-cloud-datastore/google/cloud/datastore/key.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def __ne__(self, other):
105105
def __hash__(self):
106106
"""Hash a keys for use in a dictionary lookp.
107107
108-
:rtype: integer
108+
:rtype: int
109109
:returns: a hash of the key's state.
110110
"""
111111
return (hash(self.flat_path) +
@@ -307,7 +307,7 @@ def kind(self):
307307
def id(self):
308308
"""ID getter. Based on the last element of path.
309309
310-
:rtype: integer
310+
:rtype: int
311311
:returns: The (integer) ID of the key.
312312
"""
313313
return self.path[-1].get('id')
@@ -325,7 +325,7 @@ def name(self):
325325
def id_or_name(self):
326326
"""Getter. Based on the last element of path.
327327
328-
:rtype: integer (if ``id``) or string (if ``name``)
328+
:rtype: int (if ``id``) or string (if ``name``)
329329
:returns: The last element of the key's path if it is either an ``id``
330330
or a ``name``.
331331
"""

0 commit comments

Comments
 (0)