As explained in this article, using a mutable type as a default argument to a python method can result in unexpected behavior if the object state changes during runtime. Accordingly, we should change create_app to accept string arguments which map to config classes via a dictionary.
Thanks to Adam Mertz for pointing this out.
As explained in this article, using a mutable type as a default argument to a python method can result in unexpected behavior if the object state changes during runtime. Accordingly, we should change create_app to accept string arguments which map to config classes via a dictionary.