billing: Fix mypy stubs to use keyword args instead of positional args.

This commit is contained in:
Rishi Gupta 2018-08-31 17:49:02 -07:00
parent 31ed4492ce
commit bd0487d503
1 changed files with 9 additions and 9 deletions

View File

@ -16,12 +16,12 @@ class Customer:
account_balance: int account_balance: int
@staticmethod @staticmethod
def retrieve(customer_id: str, expand: Optional[List[str]]) -> Customer: def retrieve(customer_id: str=..., expand: Optional[List[str]]=...) -> Customer:
... ...
@staticmethod @staticmethod
def create(description: str, email: str, metadata: Dict[str, Any], def create(description: str=..., email: str=..., metadata: Dict[str, Any]=...,
source: Optional[str], coupon: Optional[str]) -> Customer: source: Optional[str]=..., coupon: Optional[str]=...) -> Customer:
... ...
@staticmethod @staticmethod
@ -46,8 +46,8 @@ class Subscription:
quantity: int quantity: int
@staticmethod @staticmethod
def create(customer: str, billing: str, items: List[Dict[str, Any]], def create(customer: str=..., billing: str=..., items: List[Dict[str, Any]]=...,
prorate: bool, tax_percent: float) -> Subscription: prorate: bool=..., tax_percent: float=...) -> Subscription:
... ...
class Card: class Card:
@ -57,20 +57,20 @@ class Plan:
id: str id: str
@staticmethod @staticmethod
def create(currency: str, interval: str, product: str, amount: int, def create(currency: str=..., interval: str=..., product: str=..., amount: int=...,
billing_scheme: str, nickname: str, usage_type: str) -> Plan: billing_scheme: str=..., nickname: str=..., usage_type: str=...) -> Plan:
... ...
class Product: class Product:
id: str id: str
@staticmethod @staticmethod
def create(name: str, type: str, statement_descriptor: str, unit_label: str) -> Product: def create(name: str=..., type: str=..., statement_descriptor: str=..., unit_label: str=...) -> Product:
... ...
class Coupon: class Coupon:
id: str id: str
@staticmethod @staticmethod
def create(duration: str, name: str, percent_off: int) -> Coupon: def create(duration: str=..., name: str=..., percent_off: int=...) -> Coupon:
... ...