maybe

Option type

Provides an Option type inspired by Rust for Python 3

A simple Rust like Option type for Python 3. Fully type annotated.

GitHub

67 stars
5 watching
4 forks
Language: Python
last commit: 3 months ago

Related projects:

Repository Description Stars
rustedpy/result A library providing a simple, type-safe way to handle values with potential errors in Python 3. 1,597
mat1g3r/option A library that provides Rust-like Option and Result types in Python to handle optional and error values in a more type-safe and expressive way. 85
mplanchard/safetywrap Typesafe wrappers for handling errors and absent data in Python 44
dry-python/classes Typed polymorphism primitives for Python business logic 670
windelbouwman/rspython An alternative implementation of Python in Rust, aiming to provide a native compilation option and explore new possibilities for combining Rust with Python. 30
fl3pp/jflepp.maybe A Maybe type for C# with idiomatic extensions and System.Linq-like API. 4
jorenham/optype An opinionated typing package that simplifies type hints in Python by providing protocols for special methods like multiplication and addition 15
ambv/retype Re-applies type annotations from .pyi stubs to codebases 142
luttik/auto-optional Enforces consistent use of optional type annotations in Python code 17
orsinium-labs/infer-types A CLI tool to automatically add type annotations into Python code 85
jellezijlstra/autotyping Automatically adds type annotations to code 238
stewori/pytypes Provides runtime typechecking and annotation tools for Python to enforce strict type compatibility 200
hauntsaninja/useful_types Provides commonly used data structures and protocols in Python to improve code clarity and maintainability 99
rust-lang/rust-mode An Emacs configuration for editing Rust code 1,124
wishtack/pysynthetic Tools to simplify Python class creation with type checking and strict contract enforcement 15