mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-14 17:05:05 +00:00
Update thefuzz 0.19.0 (c2cd4f4) → 0.21.0 (0b49e4a).
This commit is contained in:
parent
c42974e035
commit
82a503792a
4 changed files with 10 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
|||
* Update Pytvmaze library 2.0.8 (81888a5) to 2.0.8 (b451391)
|
||||
* Update Rarfile 4.1a1 (8a72967) to 4.1 (c9140d8)
|
||||
* Update soupsieve 2.4.1 (2e66beb) to 2.5.0 (dc71495)
|
||||
* Update thefuzz 0.19.0 (c2cd4f4) to 0.21.0 (0b49e4a)
|
||||
|
||||
|
||||
### 3.30.1 (2023-10-02 22:50:00 UTC)
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = '0.19.0'
|
||||
__version__ = '0.21.0'
|
||||
|
|
|
@ -4,6 +4,7 @@ from . import utils
|
|||
import logging
|
||||
from rapidfuzz import fuzz as rfuzz
|
||||
from rapidfuzz import process as rprocess
|
||||
from functools import partial
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -23,11 +24,14 @@ def _get_processor(processor, scorer):
|
|||
fuzz.UWRatio, fuzz.UQRatio):
|
||||
return processor
|
||||
|
||||
if not processor:
|
||||
return utils.full_process
|
||||
force_ascii = scorer not in [fuzz.UWRatio, fuzz.UQRatio]
|
||||
pre_processor = partial(utils.full_process, force_ascii=force_ascii)
|
||||
|
||||
if not processor or processor == utils.full_process:
|
||||
return pre_processor
|
||||
|
||||
def wrapper(s):
|
||||
return utils.full_process(processor(s))
|
||||
return pre_processor(processor(s))
|
||||
|
||||
return wrapper
|
||||
|
||||
|
|
1
lib/thefuzz/py.typed
Normal file
1
lib/thefuzz/py.typed
Normal file
|
@ -0,0 +1 @@
|
|||
|
Loading…
Reference in a new issue