v1.1.0

pydantic/montyv1.1.0Oct 5, 2026by davidhewitt

Upgrading?

AI Summary

This release introduces support for the `complex` type, fixes arithmetic expression behavior with booleans, and improves build stability. It also enhances closure capture detection and refines CI workflows.

Key Highlights

  • Add `complex` type support
  • Fix boolean-to-integer handling in arithmetic expressions
  • Detect closure captures in `raise`, `assert`, and `except` statements
  • Improved build stability for dict literals and PGO

New Features

  • Support for the `complex` type
  • Closure capture detection for `raise`, `assert`, and `except` expressions
  • Reject script paths colliding with type stubs

Full Release Notes

## What's Changed
* ci: fix lints for rust 1.99 by @davidhewitt in https://github.com/pydantic/monty/pull/960
* Add `complex` type by @samuelcolvin in https://github.com/pydantic/monty/pull/935
* ci: install PGO host interpreter to avoid clobbering windows Python by @davidhewitt in https://github.com/pydantic/monty/pull/959
* Reject a script path that collides with the type stubs file by @ragen1337 in https://github.com/pydantic/monty/pull/967
* fix: treat `bool`s as `int`s in arithmetic expressions. by @jaheba in https://github.com/pydantic/monty/pull/964
* Release a failed dict-literal build's operands and half-built dict by @Yi-111-a in https://github.com/pydantic/monty/pull/961
* ci: automatically inject `optionalDependencies` for native npm deps by @davidhewitt in https://github.com/pydantic/monty/pull/958
* Fix octal escapes in re module by @Rogdham in https://github.com/pydantic/monty/pull/934
* Scan `raise`, `assert` and `except` expressions for closure captures by @rewitt94 in https://github.com/pydantic/monty/pull/924
* release: 1.1.0 by @davidhewitt in https://github.com/pydantic/monty/pull/969

## New Contributors
* @ragen1337 made their first contribution in https://github.com/pydantic/monty/pull/967
* @jaheba made their first contribution in https://github.com/pydantic/monty/pull/964
* @Yi-111-a made their first contribution in https://github.com/pydantic/monty/pull/961
* @Rogdham made their first contribution in https://github.com/pydantic/monty/pull/934

**Full Changelog**: https://github.com/pydantic/monty/compare/v1.0.1...v1.1.0

Related Repositories