25th August 2021
Computer Science⚑
Programming⚑
Basics⚑
-
New: Issubclass.
issubclass(class, classinfo)
: ReturnTrue
ifclass
is a subclass (direct, indirect or virtual) ofclassinfo
. A class is considered a subclass of itself.classinfo
may be a tuple of class objects, in which case every entry inclassinfo
will be checked. In any other case, aTypeError
exception 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 theClass
and theClass
itself.