framework
framework copied to clipboard
Provide some runtime type assertions
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