framework icon indicating copy to clipboard operation
framework copied to clipboard

Provide some runtime type assertions

Open roll opened this issue 2 years ago • 0 comments

Overview

Since v5 we use static typing to ensure code quality. If a user setup the typing support on their side it will work for them. If a user didn't it might help if we do some basic runtime type checks anyway to improve UX in case of type errors.

E.g.

package.add_resource(dict) # static type error as a Resource instance is expected

Related #1181

roll avatar Nov 21 '22 11:11 roll