seitime-frappe/frappe/utils
Ankush Menat c55c8e4f97
refactor(DX): add type hints for some utilities (#16871)
- Added type hints to majority of most used functions in `utils/data.py`
- added overloads for functions whose output depends on input type. This helps A LOT if your LSP supports type narrowing (like pyright)


Example:
Same function with 3 diff singatures narrowed by input value. 
<img width="1270" alt="Screenshot 2022-05-10 at 8 02 02 PM" src="https://user-images.githubusercontent.com/9079960/167653595-2ab9441f-da40-4645-aa87-9ec0d96cbec9.png">
2022-05-11 06:14:31 +00:00
..
__init__.py Merge pull request #15538 from noahjacob/phone_field_control 2022-04-28 10:27:52 +05:30
background_jobs.py Merge branch 'develop' of github.com:frappe/frappe into bg-rename_doc 2022-04-14 13:41:56 +05:30
backups.py fix: Replace password with asterisks before logging (#16743) 2022-04-26 10:30:46 +00:00
bench_helper.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
boilerplate.py chore!: remove dead hooks app_icon & app_color 2022-05-10 14:41:01 +05:30
change_log.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
commands.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
connections.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
csvutils.py fix: properly validate google sheets url (#16683) 2022-04-26 15:17:19 +05:30
dashboard.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
data.py refactor(DX): add type hints for some utilities (#16871) 2022-05-11 06:14:31 +00:00
dateutils.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
diff.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
doctor.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
error.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
file_lock.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
file_manager.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
fixtures.py refactor: Sync fixtures 2022-04-26 23:43:07 +02:00
formatters.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
global_search.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
goal.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
html_utils.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
identicon.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
image.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
install.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
jinja.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
jinja_globals.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
lazy_loader.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
logger.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
make_random.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
momentjs.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
nestedset.py perf: dont query for impossible child/ancestor (#16577) 2022-04-12 13:31:57 +05:30
oauth.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
password.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
password_strength.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
pdf.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
print_format.py fix(linting): no single quotes :'| 2022-04-18 17:29:03 +05:30
redis_queue.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
redis_wrapper.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
response.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
safe_exec.py feat: provision to handle payment authorization event in server script for custom documents (#16712) 2022-04-26 10:02:30 +00:00
scheduler.py fix: Show site name along with debugging messages 2022-05-10 13:33:53 +05:30
testutils.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
user.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
verified_command.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
weasyprint.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
xlsxutils.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30