Follow PEP 484 - no implicit optionals
This commit is contained in:
		| @@ -1522,7 +1522,7 @@ class FreqtradeBot(LoggingMixin): | ||||
|             *, | ||||
|             exit_tag: Optional[str] = None, | ||||
|             ordertype: Optional[str] = None, | ||||
|             sub_trade_amt: float = None, | ||||
|             sub_trade_amt: Optional[float] = None, | ||||
|     ) -> bool: | ||||
|         """ | ||||
|         Executes a trade exit for the given trade and limit | ||||
| @@ -1616,7 +1616,7 @@ class FreqtradeBot(LoggingMixin): | ||||
|         return True | ||||
|  | ||||
|     def _notify_exit(self, trade: Trade, order_type: str, fill: bool = False, | ||||
|                      sub_trade: bool = False, order: Order = None) -> None: | ||||
|                      sub_trade: bool = False, order: Optional[Order] = None) -> None: | ||||
|         """ | ||||
|         Sends rpc notification when a sell occurred. | ||||
|         """ | ||||
| @@ -1729,8 +1729,9 @@ class FreqtradeBot(LoggingMixin): | ||||
| # Common update trade state methods | ||||
| # | ||||
|  | ||||
|     def update_trade_state(self, trade: Trade, order_id: str, action_order: Dict[str, Any] = None, | ||||
|                            stoploss_order: bool = False, send_msg: bool = True) -> bool: | ||||
|     def update_trade_state( | ||||
|             self, trade: Trade, order_id: str, action_order: Optional[Dict[str, Any]] = None, | ||||
|             stoploss_order: bool = False, send_msg: bool = True) -> bool: | ||||
|         """ | ||||
|         Checks trades with open orders and updates the amount if necessary | ||||
|         Handles closing both buy and sell orders. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user