pull/13993/head
garret1317 18 hours ago
parent a9df16db47
commit 0d71d6f419

@ -3,7 +3,6 @@ from __future__ import annotations
import collections import collections
import collections.abc import collections.abc
import contextlib import contextlib
import dataclasses
import functools import functools
import http.cookies import http.cookies
import inspect import inspect
@ -234,8 +233,6 @@ def traverse_obj(
result = list(map(apply_specials, obj.iterfind(xpath))) result = list(map(apply_specials, obj.iterfind(xpath)))
else: else:
result = apply_specials(obj) result = apply_specials(obj)
elif dataclasses.is_dataclass(obj):
result = getattr(obj, key)
return branching, result if branching else (result,) return branching, result if branching else (result,)

Loading…
Cancel
Save