fix: incorrect type hints (#33381)

[skip ci]
This commit is contained in:
Ankush Menat 2022-12-19 16:44:19 +05:30 committed by GitHub
parent 65db9cea25
commit 88ce11f03d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -766,13 +766,13 @@ def get_delivery_note_serial_no(item_code, qty, delivery_note):
@frappe.whitelist() @frappe.whitelist()
def auto_fetch_serial_number( def auto_fetch_serial_number(
qty: float, qty: int,
item_code: str, item_code: str,
warehouse: str, warehouse: str,
posting_date: Optional[str] = None, posting_date: Optional[str] = None,
batch_nos: Optional[Union[str, List[str]]] = None, batch_nos: Optional[Union[str, List[str]]] = None,
for_doctype: Optional[str] = None, for_doctype: Optional[str] = None,
exclude_sr_nos: Optional[List[str]] = None, exclude_sr_nos=None,
) -> List[str]: ) -> List[str]:
filters = frappe._dict({"item_code": item_code, "warehouse": warehouse}) filters = frappe._dict({"item_code": item_code, "warehouse": warehouse})

View File

@ -715,8 +715,8 @@ def get_itemwise_batch(warehouse, posting_date, company, item_code=None):
def get_stock_balance_for( def get_stock_balance_for(
item_code: str, item_code: str,
warehouse: str, warehouse: str,
posting_date: str, posting_date,
posting_time: str, posting_time,
batch_no: Optional[str] = None, batch_no: Optional[str] = None,
with_valuation_rate: bool = True, with_valuation_rate: bool = True,
): ):