Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbrzt committed Aug 13, 2023
1 parent a01beaa commit 677127f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ assert third == 'a2'
zeroth = generate_key_between(None, first)
assert zeroth == 'Zz'

# Insert in between 2nd and 3rd. Midpoint
# Insert in between 2nd and 3rd — midpoint
second_and_half = generate_key_between(second, third)
assert second_and_half == 'a1V'

Expand All @@ -64,7 +64,7 @@ assert keys == ['a1', 'a2', 'a3']
keys = generate_n_keys_between(None, 'a0', n=3)
assert keys == ['Zx', 'Zy', 'Zz']

# Insert 3 in between 2nd and 3rd. Midpoint
# Insert 3 in between 2nd and 3rd — midpoint
keys = generate_n_keys_between('a1', 'a2', n=3)
assert keys == ['a1G', 'a1V', 'a1l']

Expand Down
5 changes: 3 additions & 2 deletions fractional_indexing.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
"""
Provides functions for generating ordering strings
<https://github.com/httpie/fractional-indexing-python>.
<https://observablehq.com/@dgreensp/implementing-fractional-indexing>
<https://github.com/httpie/fractional-indexing-python>.
"""
from math import floor
from typing import Optional, List
import decimal


__version__ = '0.1.2'
__version__ = '0.1.3'
__licence__ = 'CC0 1.0 Universal'

BASE_62_DIGITS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
Expand Down

0 comments on commit 677127f

Please sign in to comment.