Skip to content

Commit

Permalink
deleted redundant base class definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenithClown committed Oct 18, 2021
1 parent d7a8aaa commit 7177e3a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions VisualCrossing/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,6 @@
from ._api import base
from .errors import * # noqa: F403

class _base(object):
"""Base Class that Loads attributes from `config` File"""

def __init__(self, **kwargs):
# self.__dict__.update(json.load(open(os.path.join(path, "config.json"), "r")))
for k, v in json.load(open(os.path.join(__homepath__, "config.json"), "r")).items():
if k in self.__valid_keys__ and k not in kwargs.keys():
setattr(self, k, v)
else:
setattr(self, k, kwargs[k] or v)

@property
def __valid_keys__(self):
return ["key", "unitGroup", "contentType"]


class API(base):
"""A basic API for Visual-Crossing Weather Data
Expand Down

0 comments on commit 7177e3a

Please sign in to comment.