Skip to content

Commit fb9d4b2

Browse files
committed
allow to set user in mutable object
1 parent b227215 commit fb9d4b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/osmium/osm/mutable.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class OSMObject(object):
1010
"""
1111

1212
def __init__(self, base=None, id=None, version=None, visible=None, changeset=None,
13-
timestamp=None, uid=None, tags=None):
13+
timestamp=None, uid=None, tags=None, user=None):
1414
if base is None:
1515
self.id = id
1616
self.version = version
@@ -19,6 +19,7 @@ def __init__(self, base=None, id=None, version=None, visible=None, changeset=Non
1919
self.timestamp = timestamp
2020
self.uid = uid
2121
self.tags = tags
22+
self.user = user
2223
else:
2324
self.id = base.id if id is None else id
2425
self.version = base.version if version is None else version
@@ -27,6 +28,7 @@ def __init__(self, base=None, id=None, version=None, visible=None, changeset=Non
2728
self.timestamp = base.timestamp if timestamp is None else timestamp
2829
self.uid = base.uid if uid is None else uid
2930
self.tags = base.tags if tags is None else tags
31+
self.user = base.user if user is None else user
3032

3133

3234
class Node(OSMObject):

0 commit comments

Comments
 (0)