Conversation
- Add pyproject.toml configuring ty to target Python 3.11 and ignore unresolved-import errors for third-party packages not in this env - config/qutebrowser/config.py: use cast(Any, None) in TYPE_CHECKING block so c and config are typed Any (bare annotations aren't definitions) - dot/jupyter/jupyter_notebook_config.py: suppress get_config undefined reference with type: ignore (injected by Jupyter at runtime) - py-scripts/wah.py: annotate data as Dict[str, Any] and replace walrus operator pattern that ty couldn't narrow through - venueQ/venueQ.py: add _Vim stub class so vim has correct attribute types in TYPE_CHECKING context; rename deprecated warn() to warning() - py-scripts/aur-auto-vote-with-chaotic.py: remove now-unused type: ignore https://claude.ai/code/session_01Pa53zwdcjHTSJcRZUxD6ib
- Replace pyproject.toml with ty.toml (more appropriate for a dotfiles repo that isn't a Python project) - Drop python-version setting; only configure unresolved-import = "ignore" - venueQ/otis.py: replace datetime.UTC (Python 3.11+) with timezone.utc which works in all Python 3 versions https://claude.ai/code/session_01Pa53zwdcjHTSJcRZUxD6ib
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
catch some type issues