diff --git a/engineering_notation/engineering_notation.py b/engineering_notation/engineering_notation.py index 0faaebc..561139b 100644 --- a/engineering_notation/engineering_notation.py +++ b/engineering_notation/engineering_notation.py @@ -2,6 +2,8 @@ from string import digits import sys +from typing import Optional + try: import numpy except ImportError: @@ -51,7 +53,7 @@ class EngUnit: Represents an engineering number, complete with units """ def __init__(self, value, - precision=2, significant=0, unit: str = None, separator=""): + precision=2, significant=0, unit: Optional[str] = None, separator=""): """ Initialize engineering with units :param value: the desired value in the form of a string, int, or float diff --git a/setup.py b/setup.py index d08f4d1..556f391 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ -from setuptools import setup, find_packages +from setuptools import setup + import os __version__ = None @@ -36,7 +37,8 @@ author='Jason R. Jones', author_email='slightlynybbled@gmail.com', url='https://github.com/slightlynybbled/engineering_notation', - packages=find_packages(), + packages=["engineering_notation"], + package_data={"engineering_notation": ["py.typed"]}, install_requires=requirements, setup_requires=['flake8', 'pytest'], license='MIT',