Skip to content

Commit

Permalink
Type definitions for many manifest related objects returned by the e-…
Browse files Browse the repository at this point in the history
…Manifest/RCRAInfo services.

    clean up and finalize type doc strings
    implement generic response types that return Manifest types
    fix test that allow new_client to be created without a RCRAInfo environment
    Waste type definition
    move types to separate module to eliminate the massive file
    add Manifest Type Definition
    rename types for consistency and export public types at package level
    shorten doc strings to below 99 characters where possible
    lint with mypy and fix type annotations for possibly None types
    use the python/type_checking package to for backward compatible API types. Add type stubs for requirements_dev.txt
    remove 'Required' type annotation on SignManifestArgs to remain backwards compatible with python 3.10
    see documentation on Required https://docs.python.org/3/library/typing.html\#typing.Required
    increment version and remove deprecated datetime.utcnow() calls
    UI Link service type annotations
    type annotations for sign_manifest method
  • Loading branch information
dpgraham4401 committed Jul 17, 2024
1 parent edadece commit 2a2406e
Show file tree
Hide file tree
Showing 6 changed files with 606 additions and 365 deletions.
2 changes: 1 addition & 1 deletion emanifest-py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "emanifest"
version = "4.1.2"
version = "4.1.3"
description = "An API utility wrapper for accessing the e-Manifest hazardous waste tracking system maintained by the US Environmental Protection Agency"
readme = "README.md"
authors = [
Expand Down
2 changes: 2 additions & 0 deletions emanifest-py/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ ruff==0.5.2
responses==0.25.3
mypy==1.10.1
-r requirements.txt
typing_extensions==4.12.2
types-requests==2.32.0.20240712
32 changes: 29 additions & 3 deletions emanifest-py/src/emanifest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,33 @@
from .client import ( # noqa: I001, F401
from .client import (
RCRAINFO_PREPROD,
RCRAINFO_PROD,
RcrainfoClient,
RcrainfoResponse,
new_client,
RCRAINFO_PROD,
RCRAINFO_PREPROD,
)
from .types import (
AdditionalInfo,
BillStatus,
BrInfo,
Comment,
CorrectionRequestStatus,
DotInformation,
Manifest,
MtnSearchArgs,
OriginType,
PcbInfo,
PortOfEntry,
Quantity,
RcraCodeDescription,
RcraLocality,
RcraSite,
SiteExistsResponse,
SiteSearchArgs,
SiteType,
Status,
SubmissionType,
UILinkArgs,
UserSearchArgs,
UserSearchResponse,
Waste,
)
Loading

0 comments on commit 2a2406e

Please sign in to comment.