---
source: crates/ruff_linter/src/rules/pyflakes/mod.rs
---
F401 `orjson` imported but unused; consider using `importlib.util.find_spec` to test for availability
 --> F401_10.py:6:16
  |
4 | def module_not_found_error():
5 |     try:
6 |         import orjson
  |                ^^^^^^
7 |
8 |         return True
  |
help: Remove unused import: `orjson`

F401 `orjson` imported but unused; consider using `importlib.util.find_spec` to test for availability
  --> F401_10.py:15:16
   |
13 | def import_error():
14 |     try:
15 |         import orjson
   |                ^^^^^^
16 |
17 |         return True
   |
help: Remove unused import: `orjson`
