Skip to content

Commit ce15d4b

Browse files
Fix LocalPathField constructor to properly pass kwargs to parent
Co-authored-by: kshitij-microsoft <[email protected]>
1 parent cd95808 commit ce15d4b

File tree

1 file changed

+2
-2
lines changed
  • sdk/ml/azure-ai-ml/azure/ai/ml/_schema/core

1 file changed

+2
-2
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/_schema/core/fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ class LocalPathField(fields.Str):
138138
def __init__(self, allow_dir=True, allow_file=True, **kwargs):
139139
self._allow_dir = allow_dir
140140
self._allow_file = allow_file
141-
self._pattern = kwargs.get("pattern", None)
142-
super().__init__()
141+
self._pattern = kwargs.pop("pattern", None)
142+
super().__init__(**kwargs)
143143

144144
def _jsonschema_type_mapping(self):
145145
schema = {"type": "string", "arm_type": LOCAL_PATH}

0 commit comments

Comments
 (0)