prevent a method declaration containing type None [e.g. f(x::None) = 1] from breaking method printing