Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pypa/virtualenv
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 21.0.0
Choose a base ref
...
head repository: pypa/virtualenv
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 21.1.0
Choose a head ref
  • 3 commits
  • 117 files changed
  • 4 contributors

Commits on Feb 26, 2026

  1. Add security policy

    gaborbernat committed Feb 26, 2026
    Configuration menu
    Copy the full SHA
    17d98ba View commit details
    Browse the repository at this point in the history
  2. add comprehensive type annotations across the entire codebase (#3076)

    This change adds full return-type and parameter-type annotations to all
    ~625 functions and methods across the entire virtualenv source tree. It
    brings the codebase from ~26% type coverage to near-complete coverage,
    matching the standard already established in the sibling tox project.
    
    Key changes include:
    
    - PEP 561 marker: Added `py.typed` so downstream consumers get inline
    type information.
    - Ruff ANN rules enabled: Replaced the blanket "ANN" ignore in
    `pyproject.toml` with only the two specific exceptions (ANN003, ANN401),
    and added FBT001 to the global ignore since the existing
    boolean-positional-argument function signatures are public API.
    - ty type checker hardened: Added --error-on-warning to both `type` and
    `type-3.8` tox environments in `tox.toml`.
    - All modules annotated: config, run, create (including
    CPython/PyPy/GraalPy/RustPython builders), activation (all 7 shells),
    seed (pip install, wheels, periodic update), app_data, util (lock, path,
    subprocess, zipapp), and discovery — every function now has explicit
    parameter types and return types.
    - Both linters pass clean: ruff check and ty check --python-version 3.14
    --error-on-warning report zero errors. All pre-existing tests continue
    to pass.
    
    Fixes: #3075 
    
    ### Thanks for contributing, make sure you address all the checklists
    (for details on how see [development
    documentation](https://virtualenv.pypa.io/en/latest/development.html#development))
    
    - [x] ran the linter to address style issues (`tox -e fix`)
    - [x] wrote descriptive pull request text
    - [x] ensured there are test(s) validating the fix
    - [x] added news fragment in `docs/changelog` folder
    - [x] updated/extended the documentation
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    rahuldevikar and pre-commit-ci[bot] authored Feb 26, 2026
    Configuration menu
    Copy the full SHA
    981d87c View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2026

  1. release 21.1.0

    gaborbernat committed Feb 27, 2026
    Configuration menu
    Copy the full SHA
    404a3e5 View commit details
    Browse the repository at this point in the history
Loading