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

71 stars
5 watching
5 forks
Language: Python
last commit: about 2 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,625
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 Enables typed polymorphism and type-safe business logic in Python without inheritance or interfaces. 678
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 A library that provides runtime-checkable type protocols for operator overloading in Python 24
ambv/retype Re-applies type annotations from .pyi stubs to codebases 141
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 86
jellezijlstra/autotyping Automatically adds type annotations to code 241
stewori/pytypes Provides runtime typechecking and annotation tools for Python to enforce strict type compatibility 201
hauntsaninja/useful_types Provides commonly used data structures and protocols in Python to improve code clarity and maintainability 115
rust-lang/rust-mode An Emacs configuration for editing Rust code 1,133
wishtack/pysynthetic A set of tools that simplify Python class creation by reducing boilerplate code and enforcing type checking. 15