25th August 2021
Computer Science⚑
Programming⚑
Basics⚑
-
New: Issubclass.
issubclass(class, classinfo): ReturnTrueifclassis a subclass (direct, indirect or virtual) ofclassinfo. A class is considered a subclass of itself.classinfomay be a tuple of class objects, in which case every entry inclassinfowill be checked. In any other case, aTypeErrorexception is raised.
FastAPI⚑
- Improvement: Wrapping imported functions.
-
New: Dependency injection.
A FastAPI decorated function can import the necessary arguments for other functions or objects.
Typing⚑
-
New: Type.
Type[Class]: Accepts instances of theClassand theClassitself.