ignite
ignite copied to clipboard
Replace `Optional` typing hints with modern `X | None` syntax in `conftest.py`
🐛 Issue / Enhancement
The file tests/conftest.py still uses the older Optional[X]
typing syntax from the typing module, which can be replaced
with the modern Python 3.10+ X | None syntax for consistency
and readability.
📄 File Affected
tests/conftest.py
🔧 Suggested Change
Before:
from typing import Optional
Optional[str]
After thoroughly checking all conftest.py files in the repository, it appears that Optional typing hints were never used in these files. Closing this issue as it was raised incorrectly.