summaryrefslogtreecommitdiff
path: root/slugify/slugify.py
diff options
context:
space:
mode:
authorReza Moradi <reza.moradi@oneflow.com>2022-02-26 19:55:55 +0100
committerGitHub <noreply@github.com>2022-02-26 13:55:55 -0500
commit0bf1b8761f695e5ae14d9c439a05b151b4a1093d (patch)
tree16cad088e9036cf413cf55801a178309de003399 /slugify/slugify.py
parentd968ca7419e6f4e40685888c56d03bea50fd39d7 (diff)
downloadpython-slugify-0bf1b8761f695e5ae14d9c439a05b151b4a1093d.tar.gz
remove type hinting (#113)v6.1.1
Diffstat (limited to 'slugify/slugify.py')
-rw-r--r--slugify/slugify.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/slugify/slugify.py b/slugify/slugify.py
index ae6c9b6..b8c02ad 100644
--- a/slugify/slugify.py
+++ b/slugify/slugify.py
@@ -1,6 +1,5 @@
import re
import sys
-import typing
import unicodedata
from html.entities import name2codepoint
@@ -67,8 +66,7 @@ def smart_truncate(string, max_length=0, word_boundary=False, separator=' ', sav
def slugify(text, entities=True, decimal=True, hexadecimal=True, max_length=0, word_boundary=False,
separator=DEFAULT_SEPARATOR, save_order=False, stopwords=(), regex_pattern=None, lowercase=True,
- replacements: typing.Iterable[typing.Iterable[str]] = (),
- allow_unicode=False):
+ replacements=(), allow_unicode=False):
"""
Make a slug from the given text.
:param text (str): initial text