Skip to content

Commit 361a1d5

Browse files
committed
Removed dead code
1 parent f5e5a38 commit 361a1d5

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/fractured_json/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,6 @@ def get(self, name: str) -> int | bool | str | NativeEnum:
221221
@classmethod
222222
def _from_dotnet(cls, dotnet_instance: object) -> "FracturedJsonOptions":
223223
"""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-
232224
wrapper = cls()
233225
wrapper._dotnet_instance = dotnet_instance # Reuse existing instance
234226
return wrapper

0 commit comments

Comments
 (0)