fix: pylint fixes
Some checks failed
Pylint / Pylint (3.12) (push) Failing after 34s

This commit is contained in:
Seaswimmer 2023-12-22 13:56:50 -05:00
parent a674eabf89
commit bf0f556278
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE
2 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,5 @@
"""This module contains the RestAdapter class, which is used to make requests to the Zipline server."""""
import logging
from typing import Dict
from json import JSONDecodeError
import requests

View file

@ -1,7 +1,7 @@
"""This is a list of various utility functions used in PyZipline."""
from datetime import datetime
from datetime import datetime as dtime
def convert_str_to_datetime(date_string: str) -> datetime:
def convert_str_to_datetime(date_string: str) -> dtime:
"""Converts a Zipline date string to a datetime object
Args:
@ -10,9 +10,9 @@ def convert_str_to_datetime(date_string: str) -> datetime:
Returns:
datetime: Datetime object
"""
return datetime.strptime(date_string, '%Y-%m-%dT%H:%M:%S.%fZ')
return dtime.strptime(date_string, '%Y-%m-%dT%H:%M:%S.%fZ')
def convert_datetime_to_str(datetime: datetime) -> str:
def convert_datetime_to_str(datetime: dtime) -> str:
"""Converts a datetime object to a Zipline (`ISO 8601`) date string
Args: