maxrothman: Looks like I made a typo, which caused tests to fail. It should be fixed now, and when this merges, you can just use the "squash and merge" option to hide the "squash me" commit.
maxrothman: Never mind about the squashing thing, I handled it myself. Just getting this to pass tests now.
coveralls: 
[![Coverage Status](https://:/builds/12038008/badge)](https://:/builds/12038008)

Coverage remained the same at 100.0% when pulling **f87c032ab810fa719e2625ba96e61913a9585565 on maxrothman:patch-1** into **0d11d0874ca6c540d86c7429f9072d774f7b4a94 on seperman:master**.

coveralls: 
[![Coverage Status](https://:/builds/12038178/badge)](https://:/builds/12038178)

Coverage remained the same at 100.0% when pulling **b794c87090b0e63ef97b10cdd090697316e4b934 on maxrothman:patch-1** into **0d11d0874ca6c540d86c7429f9072d774f7b4a94 on seperman:master**.

diff --git a/deepdiff/search.py b/deepdiff/search.py
index 26ba882..f9fc465 100644
--- a/deepdiff/search.py
+++ b/deepdiff/search.py
@@ -131,7 +131,10 @@ class DeepSearch(dict):
             if is_namedtuple:
                 obj = obj._asdict()
             else:
-                obj = obj.__dict__
+                # Skip magic methods. Slightly hacky, but unless people are defining
+                # new magic methods they want to search, it should work fine.
+                obj = {i: getattr(obj, i) for i in dir(obj)
+                    if not (i.startswith('__') and i.endswith('__'))}
         except AttributeError:
             try:
                 obj = {i: getattr(obj, i) for i in obj.__slots__}

DeepSearch doesn't search for inherited class attributes
```python
class Foo(object):
    bar = 'baz'

deepdiff.DeepSearch(Foo, 'baz')
#-> {}
```

The solution to this looks pretty simple: in `DeepSearch.__search_obj()`, change [this line](https://github.com/seperman/deepdiff/blob/master/deepdiff/search.py#L134) to `obj = {getattr(attr) for attr in dir(obj)}`. `dir()` traverses the inheritence tree, finding attributes not in `__dict__`. I'm happy to make a PR if this looks good to you.
diff --git a/tests/test_search.py b/tests/test_search.py
index 49929c6..6257875 100644
--- a/tests/test_search.py
+++ b/tests/test_search.py
@@ -286,6 +286,18 @@ class DeepSearchTestCase(unittest.TestCase):
         result = {'matched_values': {'root'}}
         self.assertEqual(DeepSearch(obj, item, verbose_level=1, case_sensitive=False), result)
 
+    def test_search_inherited_attributes(self):
+        class Parent(object):
+            a = 1
+
+        class Child(Parent):
+            b = 2
+
+        obj = Child()
+        item = 1
+        result = {'matched_values': {'root.a'}}
+        self.assertEqual(DeepSearch(obj, item, verbose_level=1), result)
+
 
 class GrepTestCase(unittest.TestCase):
 

pip install -e .[dev]
parse_log_pytest
pytest
pytest mock
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
-e git+https://github.com/seperman/deepdiff.git@0d11d0874ca6c540d86c7429f9072d774f7b4a94#egg=deepdiff
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
jsonpickle==2.2.0
mock==5.2.0
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: deepdiff
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - jsonpickle==2.2.0
      - mock==5.2.0
prefix: /opt/conda/envs/deepdiff

tests/test_search.py::DeepSearchTestCase::test_search_inherited_attributes
tests/test_search.py::DeepSearchTestCase::test_bad_attribute tests/test_search.py::DeepSearchTestCase::test_case_insensitive_of_str_in_list tests/test_search.py::DeepSearchTestCase::test_case_insensitive_of_str_in_one_liner tests/test_search.py::DeepSearchTestCase::test_case_sensitive_of_str_in_list tests/test_search.py::DeepSearchTestCase::test_case_sensitive_of_str_in_one_liner tests/test_search.py::DeepSearchTestCase::test_custom_object tests/test_search.py::DeepSearchTestCase::test_custom_object_in_dictionary_verbose tests/test_search.py::DeepSearchTestCase::test_custom_object_skip_path tests/test_search.py::DeepSearchTestCase::test_custom_object_verbose tests/test_search.py::DeepSearchTestCase::test_int_in_dictionary tests/test_search.py::DeepSearchTestCase::test_loop tests/test_search.py::DeepSearchTestCase::test_loop_in_lists tests/test_search.py::DeepSearchTestCase::test_named_tuples_verbose tests/test_search.py::DeepSearchTestCase::test_number_in_list tests/test_search.py::DeepSearchTestCase::test_skip_dictionary_path tests/test_search.py::DeepSearchTestCase::test_skip_list_path tests/test_search.py::DeepSearchTestCase::test_skip_path1 tests/test_search.py::DeepSearchTestCase::test_skip_type_str tests/test_search.py::DeepSearchTestCase::test_string_in_dictionary tests/test_search.py::DeepSearchTestCase::test_string_in_dictionary_case_insensitive tests/test_search.py::DeepSearchTestCase::test_string_in_dictionary_in_list_verbose tests/test_search.py::DeepSearchTestCase::test_string_in_dictionary_key_case_insensitive_partial tests/test_search.py::DeepSearchTestCase::test_string_in_dictionary_verbose tests/test_search.py::DeepSearchTestCase::test_string_in_list tests/test_search.py::DeepSearchTestCase::test_string_in_list_verbose tests/test_search.py::DeepSearchTestCase::test_string_in_list_verbose2 tests/test_search.py::DeepSearchTestCase::test_string_in_list_verbose3 tests/test_search.py::DeepSearchTestCase::test_string_in_root tests/test_search.py::DeepSearchTestCase::test_string_in_root_verbose tests/test_search.py::DeepSearchTestCase::test_string_in_set_verbose tests/test_search.py::DeepSearchTestCase::test_string_in_tuple tests/test_search.py::DeepSearchTestCase::test_unknown_parameters tests/test_search.py::GrepTestCase::test_grep_dict
deepdiff/search.py
deepdiff/search.py