Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0bf1b87

Browse files
authored
remove type hinting (un33k#113)
1 parent d968ca7 commit 0bf1b87

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 6.1.1
2+
3+
- Remove type hinting (temporarily)
4+
15
## 6.1.0
26

37
- Add `allow_unicode` flag to allow unicode characters in the slug

slugify/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
__url__ = 'https://github.com/un33k/python-slugify'
66
__license__ = 'MIT'
77
__copyright__ = 'Copyright 2022 Val Neekman @ Neekware Inc.'
8-
__version__ = '6.1.0'
8+
__version__ = '6.1.1'

slugify/slugify.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import re
22
import sys
3-
import typing
43
import unicodedata
54
from html.entities import name2codepoint
65

@@ -67,8 +66,7 @@ def smart_truncate(string, max_length=0, word_boundary=False, separator=' ', sav
6766

6867
def slugify(text, entities=True, decimal=True, hexadecimal=True, max_length=0, word_boundary=False,
6968
separator=DEFAULT_SEPARATOR, save_order=False, stopwords=(), regex_pattern=None, lowercase=True,
70-
replacements: typing.Iterable[typing.Iterable[str]] = (),
71-
allow_unicode=False):
69+
replacements=(), allow_unicode=False):
7270
"""
7371
Make a slug from the given text.
7472
:param text (str): initial text

0 commit comments

Comments
 (0)