Import type annotations from the future for textual diagnose

I mean, I guess flat out crashing on older versions of Python is *a* way of
reporting the Python version. Kinda?

See the side issue reported in #1622.
This commit is contained in:
Dave Pearson
2023-01-20 07:12:59 +00:00
parent c9b84f523c
commit 78f85ba325
2 changed files with 5 additions and 0 deletions

View File

@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Added Strip.text property https://github.com/Textualize/textual/issues/1620
### Fixed
- Fixed `textual diagnose` crash on older supported Python versions.
### Changed
- The default filename for screenshots uses a datetime format similar to ISO8601, but with reserved characters replaced by underscores https://github.com/Textualize/textual/pull/1518

View File

@@ -1,5 +1,6 @@
"""Textual CLI command code to print diagnostic information."""
from __future__ import annotations
import os
import sys
import platform