Skip to content

Commit

Permalink
fix: incorrect type hints (backport #33381) (#33384)
Browse files Browse the repository at this point in the history
fix: incorrect type hints (#33381)


(cherry picked from commit 88ce11f)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush committed Dec 19, 2022
1 parent 71496a5 commit fa77259
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions erpnext/stock/doctype/serial_no/serial_no.py
Expand Up @@ -766,13 +766,13 @@ def get_delivery_note_serial_no(item_code, qty, delivery_note):

@frappe.whitelist()
def auto_fetch_serial_number(
qty: float,
qty: int,
item_code: str,
warehouse: str,
posting_date: Optional[str] = None,
batch_nos: Optional[Union[str, List[str]]] = None,
for_doctype: Optional[str] = None,
exclude_sr_nos: Optional[List[str]] = None,
exclude_sr_nos=None,
) -> List[str]:

filters = frappe._dict({"item_code": item_code, "warehouse": warehouse})
Expand Down
Expand Up @@ -715,8 +715,8 @@ def get_itemwise_batch(warehouse, posting_date, company, item_code=None):
def get_stock_balance_for(
item_code: str,
warehouse: str,
posting_date: str,
posting_time: str,
posting_date,
posting_time,
batch_no: Optional[str] = None,
with_valuation_rate: bool = True,
):
Expand Down

0 comments on commit fa77259

Please sign in to comment.