charlie-will-software / piCamera

webapp
GNU General Public License v3.0
0 stars 0 forks source link

Users/will/mypy fixes #28

Closed TheWill10m closed 5 months ago

TheWill10m commented 5 months ago

Changes to stop MyPy errors

Describe your Changes

  1. Fixed type hints
  2. Changed imports
    • Imports are done using a package name
    • This changes how the flask app is run, in order to load the package
    • The IP and port number must now be specified in the CLI

Example use case

flask --app webapp.main:app run --host 0.0.0.0 --port 8000

Issue Ticket Number and Link

Checklist before requesting a review