-
-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: explicitly export the items in the falcon.testing namespace (#2388)
* fix: explicitly export the items in the falcon.testing namespace ... so mypy also likes it when falcon.testing.TestClient is used * chore: update __init__.py * refactor: change `__all__` to tuple There is no right or wrong here, just we used tuples elsewhere.
- Loading branch information
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Running mypy on code that uses parts of ``falcon.testing`` naively | ||
would lead to errors like:: | ||
|
||
Name "falcon.testing.TestClient" is not defined | ||
|
||
This has been fixed by explicitly exporting the names that are | ||
imported in the ``falcon.testing`` namespace. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters