mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
IfcOpenShell API now uses kwargs to improve user syntax. See #1399.
This commit is contained in:
@@ -3,7 +3,7 @@ import ifcopenshell.api.owner.create_owner_history as create_owner_history
|
||||
|
||||
|
||||
class Usecase:
|
||||
def __init__(self, file, settings={}):
|
||||
def __init__(self, file, **settings):
|
||||
self.file = file
|
||||
self.settings = {}
|
||||
for key, value in settings.items():
|
||||
|
||||
@@ -4,7 +4,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history
|
||||
|
||||
|
||||
class Usecase:
|
||||
def __init__(self, file, settings={}):
|
||||
def __init__(self, file, **settings):
|
||||
self.file = file
|
||||
self.settings = {
|
||||
"product": None,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Usecase:
|
||||
def __init__(self, file, settings={}):
|
||||
def __init__(self, file, **settings):
|
||||
self.file = file
|
||||
self.settings = {
|
||||
"group": None,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Usecase:
|
||||
def __init__(self, file, settings={}):
|
||||
def __init__(self, file, **settings):
|
||||
self.file = file
|
||||
self.settings = {"group": None}
|
||||
for key, value in settings.items():
|
||||
|
||||
@@ -3,7 +3,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history
|
||||
|
||||
|
||||
class Usecase:
|
||||
def __init__(self, file, settings={}):
|
||||
def __init__(self, file, **settings):
|
||||
self.file = file
|
||||
self.settings = {
|
||||
"product": None,
|
||||
|
||||
Reference in New Issue
Block a user