Skip to content

Commit

Permalink
remove debugging print
Browse files Browse the repository at this point in the history
  • Loading branch information
davorrunje committed Jan 25, 2025
1 parent 341daa6 commit eadaa92
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions autogen/import_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def decorator(subclass: Type["PatchObject[Any]"]) -> Type["PatchObject[Any]"]:

@classmethod
def create(cls, o: T, *, missing_modules: Iterable[str], dep_target: str) -> Optional["PatchObject[T]"]:
# print(f"{cls._registry=}")
for subclass in cls._registry:
if subclass.accept(o):
return subclass(o, missing_modules, dep_target)
Expand Down Expand Up @@ -229,7 +228,6 @@ def patch(self) -> Type[Any]:
patched = patch_object(
member, missing_modules=self.missing_modules, dep_target=self.dep_target, fail_if_not_patchable=False
)
print(f"Patching {name=}, {member=}, {patched=}")
try:
setattr(self.o, name, patched)
except AttributeError:
Expand All @@ -239,7 +237,6 @@ def patch(self) -> Type[Any]:


def patch_object(o: T, *, missing_modules: Iterable[str], dep_target: str, fail_if_not_patchable: bool = True) -> T:
# print(f"Patching object {o=}")
patcher = PatchObject.create(o, missing_modules=missing_modules, dep_target=dep_target)
if fail_if_not_patchable and patcher is None:
raise ValueError(f"Cannot patch object of type {type(o)}")
Expand Down

0 comments on commit eadaa92

Please sign in to comment.