We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5e5a38 commit 361a1d5Copy full SHA for 361a1d5
1 file changed
src/fractured_json/__init__.py
@@ -221,14 +221,6 @@ def get(self, name: str) -> int | bool | str | NativeEnum:
221
@classmethod
222
def _from_dotnet(cls, dotnet_instance: object) -> "FracturedJsonOptions":
223
"""Create Python wrapper from existing .NET FracturedJsonOptions instance."""
224
- if dotnet_instance is None:
225
- msg = "dotnet_instance cannot be None"
226
- raise ValueError(msg)
227
-
228
- if str(dotnet_instance.GetType()) != str(FracturedJsonOptionsType):
229
- msg = f"Expected {FracturedJsonOptionsType}, got {dotnet_instance.GetType()}"
230
- raise TypeError(msg)
231
232
wrapper = cls()
233
wrapper._dotnet_instance = dotnet_instance # Reuse existing instance
234
return wrapper
0 commit comments