Skip to content

Add typing hints - #272

Merged
jelmer merged 4 commits into
mainfrom
typing-hints
Aug 31, 2026
Merged

Add typing hints#272
jelmer merged 4 commits into
mainfrom
typing-hints

Conversation

@jelmer

@jelmer jelmer commented Aug 30, 2026

Copy link
Copy Markdown
Owner

No description provided.

jelmer added 4 commits August 30, 2026 19:48
Also fix latent bugs where inbuffer was initialized as str instead of
bytes, and adjust the corresponding test.
Add PEP 561 py.typed marker and .pyi stubs for the Rust-backed
extensions: _ra, subr, repos, client, wc. Include them in
package_data and MANIFEST.in so they are shipped with the wheel
and sdist.
- ra_svn.py: fix _unparse -> _unpack typos, remove stale send_greeting
  call, fix b64encode() being passed a str instead of bytes, fix
  diff[args[0]] initialization to bytes instead of str
- ra_svn.py: replace deprecated undocumented urlparse.split* helpers
  with urlparse.urlparse and manual netloc splitting
- ra_svn.py: rename shadowed loop variables in log() so paths/revprops
  keep their declared types
- ra.py: replace splittype with str.partition, drop urllib2 fallback
- properties.py: drop try/except for urlparse (project is 3.10+)
- Drop SocketServer fallback in ra_svn.py
@jelmer
jelmer enabled auto-merge August 30, 2026 19:36
@jelmer
jelmer disabled auto-merge August 31, 2026 01:12
@jelmer
jelmer merged commit de2b766 into main Aug 31, 2026
47 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.

1 participant