refactor: clean up code to py39+ supported syntax
- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes
Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
Given how widespread PY310's usage has become, and how we're just a
few months away from PY311 major release. This is a slightly late
bumping but necessary to ensure smoother updates & maintenance for
Frappe, ERPNext & other apps in the coming years. Almost all people
who participated in the pool from the community as well as Frappe team
voted (via active telegram groups) PY310 as their preferred minimum
requirement for v14.
* build: Use toml defined dev dependencies over txt file
* chore: Remove redundant ==
* ref: https://github.com/frappe/bench/releases/tag/v5.12.1
* Linter's style updates
* chore(deps): Bump coverage from 5.5 to ~=6.4.1
* Small fixes in set_fields and clean code
* Optimize casefolds
* Fixed functions passed in List
* get_sql => get_query - more expressive, less confusion
* Updated tests
* feat: supporting empty iterables for Contains objects
* fix: explicitly setting empty iterables as tuples to support more operators
* feat: Added locate to frappe.qb Functions
* feat: Added support for functions passed as strings in fields
* feat: Included Criterion objects as fields
* fix: picking up only function intended fields to pass to get_function_objects
* feat: Added iterable for available functions, added support for Field objects
* fix: fixed * passed in fields in lists
* feat: Added support for True as filter and pluck in the query engine
* feat: Added join support
* fix: return if filters are None
* feat: Added support for sets as filters and additional conditions
* fix: fixed IS operator in query builder
* feat: Added support for 'as' in query engine
* fix: fixed 'as' for criterion objects passed directly
* fix: fixed frappe.db.count
* fix: fixed functions in fieldname
* feat: Added support for multiple fields passed as a single string :) fixed None fields in a list
* feat: Added support for "as" in single string fields
* fix: fixed queries with invalid syntax