Skip to content

Commit

Permalink
Restore original formatting (#576)
Browse files Browse the repository at this point in the history
Some files were reformatted in my previous PR. After regenerating the
files, the original formatting was restored. This PR simply reverts the
format change.
  • Loading branch information
stevemessick authored May 2, 2024
1 parent 4825724 commit b0f7eb1
Show file tree
Hide file tree
Showing 8 changed files with 1,436 additions and 1,480 deletions.
446 changes: 214 additions & 232 deletions kaggle/api/kaggle_api_extended.py

Large diffs are not rendered by default.

994 changes: 486 additions & 508 deletions kaggle/cli.py

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions kaggle/models/kaggle_models_extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@


class Competition(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -47,6 +48,7 @@ def __repr__(self):


class SubmitResult(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -56,6 +58,7 @@ def __repr__(self):


class Submission(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -69,6 +72,7 @@ def __repr__(self):


class LeaderboardEntry(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -78,6 +82,7 @@ def __repr__(self):


class Dataset(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -91,6 +96,7 @@ def __repr__(self):


class Model(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -100,6 +106,7 @@ def __repr__(self):


class Metadata(object):

def __init__(self, init_info):
parsed_info = {k: parse(v) for k, v in init_info.items()}
# backwards compatibility
Expand All @@ -112,6 +119,7 @@ def __repr__(self):


class DatasetVersion(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -121,6 +129,7 @@ def __repr__(self):


class File(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -140,6 +149,7 @@ def get_size(size, precision=0):


class Tag(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -149,6 +159,7 @@ def __repr__(self):


class DatasetNewVersionResponse(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -158,6 +169,7 @@ def __repr__(self):


class DatasetNewResponse(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -167,6 +179,7 @@ def __repr__(self):


class ListFilesResult(object):

def __init__(self, init_dict):
self.error_message = init_dict['errorMessage']
files = init_dict['datasetFiles']
Expand All @@ -185,6 +198,7 @@ def __repr__(self):


class Kernel:

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -194,6 +208,7 @@ def __repr__(self):


class KernelPushResponse(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -203,6 +218,7 @@ def __repr__(self):


class ModelNewResponse(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand All @@ -212,6 +228,7 @@ def __repr__(self):


class ModelDeleteResponse(object):

def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
Expand Down
1 change: 1 addition & 0 deletions kaggle/test/test_authenticate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@


class TestAuthenticate(unittest.TestCase):

def setUp(self):
print("setup class:%s" % self)

Expand Down
Loading

0 comments on commit b0f7eb1

Please sign in to comment.