In Python, if you return a class instance, that instance has everything a consumer needs to use it. So for instance, if I pass a PynamoDB model object (indicating a document in DynamoDB) back to a consumer, they’ll be able to use it without importing Pynamo directly.
Imports and Class Instances
Part of python