smichr/sympy — comment on commit a8eebb28668bb47db68428191df53fc17cc8ba21
File: sympy/core/basic.py line 873
By rlamy:

I think you should create a stub `Basic._eval_subs`. That would avoid the clumsy hasattr check and would allow you to document the expected behaviour of the hook.