Opyoid

Latest version: v3.0.1

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

1.1.0

Features
- Added official support for Python 3.10
- Added support for Union[...] type, which injects the first item type for which bindings exist
- Added support for List[Union[...]] type, which injects a list combining all the items types in the union

1.0.1

Fixes
- Using auto bindings does not ignore existing bindings anymore (bug introduced in `0.10.0`)
- The error message in cyclic dependency errors is now displaying the dependencies in a more logical order
(from the parent class to the dependencies)

1.0.0

Breaking changes
- Renamed `bound_type` argument in `ClassBinding` and `ItemBinding` constructors into `bound_class`
- Several method signatures now have keyword-only arguments:
- `named` in `Injector.inject`
- `to_class`, `to_instance`, `to_provider`, `scope` and `named` in `AbstractModule.bind`
- `scope`, `named` and `override_bindings` in `AbstractModule.multi_bind`
- `to_class`, `to_instance` and `to_provider` in `AbstractModule.bind_item`
- `scope` and `named` in `ClassBinding.__init__`
- `bound_class`, `bound_instance`, `bound_provider` in `ItemBinding.__init__`
- `named` in `InstanceBinding.__init__`
- `scope`, `named` and `override_bindings` in `MultiBinding.__init__`
- `scope` and `named` in `ProviderBinding.__init__`
- `scope` and `named` in `SelfBinding.__init__`
- `auto_bindings` in `InjectorOptions.__init__`

Features
- Opyoid is now considered stable

0.10.3

Fixes
- Improved error message when missing a named binding, the underlying type and name is used

0.10.2

Fixes
- Improved repr of named types, the original type is now used

0.10.1

Fixes
- Improved repr of generic types, the full name is now used

Page 3 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.