Skip to content

Improve imports to avoid them inside functions

Codecov / codecov/patch failed Sep 9, 2023 in 0s

86.22% of diff hit (target 100.00%)

View this Pull Request on Codecov

86.22% of diff hit (target 100.00%)

Annotations

Check warning on line 86 in falcon/forwarded.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/forwarded.py#L83-L86

Added lines #L83 - L86 were not covered by tests

Check warning on line 243 in falcon/hooks.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/hooks.py#L242-L243

Added lines #L242 - L243 were not covered by tests

Check warning on line 295 in falcon/hooks.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/hooks.py#L295

Added line #L295 was not covered by tests

Check warning on line 309 in falcon/hooks.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/hooks.py#L308-L309

Added lines #L308 - L309 were not covered by tests

Check warning on line 145 in falcon/http_error.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/http_error.py#L145

Added line #L145 was not covered by tests

Check warning on line 145 in falcon/inspect.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/inspect.py#L145

Added line #L145 was not covered by tests

Check warning on line 165 in falcon/inspect.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/inspect.py#L165

Added line #L165 was not covered by tests

Check warning on line 204 in falcon/inspect.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/inspect.py#L204

Added line #L204 was not covered by tests

Check warning on line 206 in falcon/inspect.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/inspect.py#L206

Added line #L206 was not covered by tests

Check warning on line 228 in falcon/inspect.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/inspect.py#L228

Added line #L228 was not covered by tests

Check warning on line 242 in falcon/inspect.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/inspect.py#L242

Added line #L242 was not covered by tests

Check warning on line 248 in falcon/inspect.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/inspect.py#L248

Added line #L248 was not covered by tests

Check warning on line 622 in falcon/inspect.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/inspect.py#L622

Added line #L622 was not covered by tests

Check warning on line 791 in falcon/inspect.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/inspect.py#L791

Added line #L791 was not covered by tests

Check warning on line 804 in falcon/inspect.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/inspect.py#L804

Added line #L804 was not covered by tests

Check warning on line 709 in falcon/response.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

falcon/response.py#L709

Added line #L709 was not covered by tests