Move Flask hook registration to end of file (#24776)
Move Flask hook registration to end of file (#24776)

Pylance is too clever here. It (correctly) detects the connect() call is
a NoReturn and marks everything after it as unreachable. But this is not
correct; Flask does trickery at runtime to make it not the case. The
simplest workaround is to just move those registration code to the end
of the file.
cfei18/incubator-airflow,cfei18/incubator-airflow,nathanielvarona/airflow,apache/airflow,danielvdende/incubator-airflow,Acehaidrey/incubator-airflow,cfei18/incubator-airflow,apache/airflow,danielvdende/incubator-airflow,Acehaidrey/incubator-airflow,danielvdende/incubator-airflow,danielvdende/incubator-airflow,apache/airflow,cfei18/incubator-airflow,Acehaidrey/incubator-airflow,Acehaidrey/incubator-airflow,nathanielvarona/airflow,apache/airflow,cfei18/incubator-airflow,danielvdende/incubator-airflow,cfei18/incubator-airflow,nathanielvarona/airflow,nathanielvarona/airflow,danielvdende/incubator-airflow,Acehaidrey/incubator-airflow,nathanielvarona/airflow,Acehaidrey/incubator-airflow,apache/airflow,apache/airflow,nathanielvarona/airflow