Skip to content

Commit 766060c

Browse files
authored
Update project authors, alias ElementTree, bump release version to 0.1.3 (#20)
1 parent c12fb8c commit 766060c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "fred_py_api"
7-
version = "0.1.2"
7+
version = "0.1.3"
88
authors = [
99
{ name="Zachary Spar", email="[email protected]" },
10+
{ name="Prasiddha Parthsarthy", email="[email protected]" },
1011
]
1112
description = "A fully featured FRED API client library for Python."
1213
readme = "README.md"

src/fred/api/_fred_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
from http import HTTPStatus
66
from os import environ
77
from typing import Optional, Dict, TypeVar
8-
from xml.etree import ElementTree
8+
from xml.etree import ElementTree as ET
99

1010
import requests
1111

1212
from .exceptions import FredAPIRequestError
1313

1414

15-
JsonOrXml = TypeVar("JsonOrXml", Dict, ElementTree.Element)
15+
JsonOrXml = TypeVar("JsonOrXml", Dict, ET.Element)
1616

1717

1818
class FredClient(object):
@@ -57,5 +57,5 @@ def _get(self, endpoint: str = None, payload: dict = None) -> JsonOrXml:
5757
raise FredAPIRequestError(resp.text, resp.status_code)
5858

5959
if payload.get("file_type", "json") == "xml":
60-
return ElementTree.fromstring(resp.content)
60+
return ET.fromstring(resp.content)
6161
return resp.json()

0 commit comments

Comments
 (0)