Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9.0.0 compatibility and better typing for sockets #84

Merged

Conversation

michalpokusa
Copy link
Contributor

@michalpokusa michalpokusa commented Feb 20, 2024

🪛Fixes:

  • FileResponse was throwing uncaught error it someone did not provide root_path to both server and response constructor

🛠️ Updated/Changed:

🏗️ Refactor:

  • In all files sockets and socket pools are typed using an added interface, partly for IDE not to shout at me for not finding socketpool or wifi modules
  • __repr__ methods are now more like standard Python, so <Server ...> instead of Server(...)

@michalpokusa michalpokusa force-pushed the 9.0.0-compatibility-and-better-typing branch from 712c570 to f7d20b5 Compare February 20, 2024 05:45
@michalpokusa michalpokusa marked this pull request as ready for review February 21, 2024 21:02
jepler added a commit that referenced this pull request Feb 22, 2024
This is a minimal change compared to #84.

Closes #83
@michalpokusa michalpokusa mentioned this pull request Feb 23, 2024
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I tested the new version successfully on a Feather S3 TFT with Beta.2.

Thanks for the improvements @michalpokusa

@FoamyGuy FoamyGuy merged commit dc9f83c into adafruit:main Feb 24, 2024
1 check passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Feb 25, 2024
Updating https://github.com/adafruit/Adafruit_CircuitPython_HTTPServer to 4.5.6 from 4.5.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_HTTPServer#84 from michalpokusa/9.0.0-compatibility-and-better-typing

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
@michalpokusa michalpokusa deleted the 9.0.0-compatibility-and-better-typing branch April 3, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CircuitPython 9.0.0 will require SO.REUSEADDR for socket reuse
2 participants