Skip to content

Commit 6aa3671

Browse files
committed
Expand support to Python 3.6
1 parent 5a4a639 commit 6aa3671

File tree

6 files changed

+265
-178
lines changed

6 files changed

+265
-178
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
strategy:
99
matrix:
1010
python:
11+
- '3.6'
12+
- '3.7'
1113
- '3.8'
1214
- '3.9'
1315
- '3.10'

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
default_language_version:
2+
python: python3
13
repos:
24
- repo: local
35
hooks:

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pytest = "*"
88
black = "*"
99
twine = "*"
1010
pre-commit = "*"
11+
typing-extensions = "*"
1112

1213
[packages]
1314

Pipfile.lock

Lines changed: 255 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
This is an opinionated, simplified fork of [dbrgn/result](https://github.com/dbrgn/result).
44

5-
Result is a simple, type annotated Result type for Python 3.8+ inspired by [Rust](https://doc.rust-lang.org/std/result/).
5+
Result is a simple, type annotated Result type for Python 3.6+ inspired by [Rust](https://doc.rust-lang.org/std/result/).
66

77
The idea is that a result value can be either `Ok(value)` or `Err(error)`, with a way to differentiate between the two. `Ok` and `Err` are both classes wrapping an arbitrary value. `Result[T, E]` is a generic type alias for `typing.Union[Ok[T], Err[E]]`.
88

9-
Requires Python 3.8 or higher!
9+
Requires Python 3.6 or higher!
1010

1111

1212
### Caveats

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
"License :: OSI Approved :: MIT License",
1818
"Programming Language :: Python :: 3",
1919
"Programming Language :: Python :: 3 :: Only",
20+
"Programming Language :: Python :: 3.6",
21+
"Programming Language :: Python :: 3.7",
2022
"Programming Language :: Python :: 3.8",
2123
"Programming Language :: Python :: 3.9",
2224
"Programming Language :: Python :: 3.10",
2325
],
2426
keywords="rust result",
2527
packages=["resultify"],
26-
python_requires=">=3.8",
28+
python_requires=">=3.6",
2729
)

0 commit comments

Comments
 (0)