I set up an undefined function and a variable to go with it:
import sympy as sp
f = sp.Function('f')
t = sp.Symbol('t')
If I differentiate f(t) with respect to t, it works fine:
f(t).diff(t)
# Derivative(f(t), t)
However, if I differentiate f itself with respect to t, I get this:
f.diff(t)
# 1
I'm not exactly sure what I expected here (probably an error), but I certainly didn't expect 1. What's going on?