@@ -1228,7 +1228,7 @@ class MockConfig:
12281228 # Patch is_pydantic_model to return 2 (v2) for our mock
12291229 monkeypatch .setattr (
12301230 "jsonargparse._optionals.is_pydantic_model" ,
1231- lambda cls : 2 if cls is mock_model_v2 else is_pydantic_model (cls )
1231+ lambda cls : 2 if cls is mock_model_v2 else is_pydantic_model (cls ),
12321232 )
12331233
12341234 # This should hit the direct attribute access branch
@@ -1252,7 +1252,7 @@ class MockConfig:
12521252 # Patch is_pydantic_model to return 2 (v2) for our mock
12531253 monkeypatch .setattr (
12541254 "jsonargparse._optionals.is_pydantic_model" ,
1255- lambda cls : 2 if cls is mock_model_v2_legacy else is_pydantic_model (cls )
1255+ lambda cls : 2 if cls is mock_model_v2_legacy else is_pydantic_model (cls ),
12561256 )
12571257
12581258 # This should hit the legacy __config__ branch for v2
@@ -1274,7 +1274,7 @@ class MockPydanticModel:
12741274 # Patch is_pydantic_model to return 1 (v1) for our mock
12751275 monkeypatch .setattr (
12761276 "jsonargparse._optionals.is_pydantic_model" ,
1277- lambda cls : 1 if cls is mock_model_v1 else is_pydantic_model (cls )
1277+ lambda cls : 1 if cls is mock_model_v1 else is_pydantic_model (cls ),
12781278 )
12791279
12801280 # This should hit the string extra_value branch
@@ -1300,7 +1300,7 @@ def __str__(self):
13001300 # Patch is_pydantic_model to return 1 (v1) for our mock
13011301 monkeypatch .setattr (
13021302 "jsonargparse._optionals.is_pydantic_model" ,
1303- lambda cls : 1 if cls is mock_model_v1_enum else is_pydantic_model (cls )
1303+ lambda cls : 1 if cls is mock_model_v1_enum else is_pydantic_model (cls ),
13041304 )
13051305
13061306 # This should hit the string conversion branch
@@ -1325,7 +1325,7 @@ def __config__(self):
13251325 # Patch is_pydantic_model to return 2 (v2) for our mock
13261326 monkeypatch .setattr (
13271327 "jsonargparse._optionals.is_pydantic_model" ,
1328- lambda cls : 2 if cls is exception_model else is_pydantic_model (cls )
1328+ lambda cls : 2 if cls is exception_model else is_pydantic_model (cls ),
13291329 )
13301330
13311331 # This should hit the exception handling branch
0 commit comments