Skip to content

Commit e53d65e

Browse files
committed
fix type
1 parent 4c49713 commit e53d65e

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

com/alipay/ams/api/model/discount.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import json
22

3-
from com.alipay.ams.api.model import amount
43
from com.alipay.ams.api.model.amount import Amount
54

65

76
class Discount(object):
87

98
def __init__(self):
109
self.discountName = None
11-
self.savingsAmount = None # type: amount
10+
self.savingsAmount = None # type: Amount
1211

1312
@property
1413
def discountName(self):

com/alipay/ams/api/model/lodging.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
import username
2-
3-
from com.alipay.ams.api.model import address
1+
from com.alipay.ams.api.model.address import Address
2+
from com.alipay.ams.api.model.user_name import UserName
43

54

65
class Lodging(object):
76
def __init__(self):
87
self.__hotel_name = None
9-
self.__hotel_address = None # type: address
8+
self.__hotel_address = None # type: Address
109
self.__check_in_date = None
1110
self.__check_out_date = None
1211
self.__number_of_nights = None
1312
self.__number_of_rooms = None
14-
self.__guest_names = None # type: list[username]
13+
self.__guest_names = None # type: list[UserName]
1514

1615
@property
1716
def hotel_name(self):

com/alipay/ams/api/net/default_http_rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def do_post(url, headers=None, req_body=None, charset=DEFAULT_CHARSET):
4545
raise AlipayApiException('request failed. ' + str(e))
4646

4747
response = connection.getresponse()
48-
if response.status is not 200:
48+
if response.status != 200:
4949
raise AlipayApiException('invalid http status ' + str(response.status) + ',detail body:' + response.read())
5050
headers = response.getheaders()
5151
result = response.read()

0 commit comments

Comments
 (0)