Skip to content

ci: deal with ty errors#34

Merged
vEnhance merged 2 commits intomainfrom
claude/fix-type-checking-gT3uN
Apr 3, 2026
Merged

ci: deal with ty errors#34
vEnhance merged 2 commits intomainfrom
claude/fix-type-checking-gT3uN

Conversation

@vEnhance
Copy link
Copy Markdown
Owner

@vEnhance vEnhance commented Apr 3, 2026

catch some type issues

claude added 2 commits April 3, 2026 16:18
- 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
@vEnhance vEnhance merged commit 473896a into main Apr 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants