Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

inline conditional imports for cli behaviors#4606

Merged
davidism merged 1 commit into2.1.xfrom
cli-imports
May 23, 2022
Merged

inline conditional imports for cli behaviors#4606
davidism merged 1 commit into2.1.xfrom
cli-imports

Conversation

@davidism
Copy link
Member

@davidismdavidism commentedMay 23, 2022
edited
Loading

dotenv,ssl, andimportlib_metadata are only used in certain parts when runningflask CLI commands. Don't import them at the top level. This also makes type checking a bit easier, since mypy doesn't like conditional imports.

@davidismdavidism added this to the2.1.3 milestoneMay 23, 2022
@davidismdavidism merged commit31aad11 into2.1.xMay 23, 2022
@davidismdavidism deleted the cli-imports branchMay 23, 2022 16:51
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJun 7, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2.1.3

Development

Successfully merging this pull request may close these issues.

1 participant

@davidism

Comments


[8]ページ先頭

©2009-2026 Movatter.jp