Skip to content

Add Python 3.6.8 code compatibility modifications - #13

Open
hderry wants to merge 1 commit into
underwoo:mainfrom
hderry:3.6_compatible_mods
Open

Add Python 3.6.8 code compatibility modifications#13
hderry wants to merge 1 commit into
underwoo:mainfrom
hderry:3.6_compatible_mods

Conversation

@hderry

@hderry hderry commented Aug 13, 2026

Copy link
Copy Markdown
  • typing.Self doesn't exist until Python 3.11--> fix import line
  • Module-level dict annotation -> Subscripting built-in types like dict[str, int] (PEP 585) needs Python 3.9+
  • Function parameter annotation -> Function annotations are also evaluated at def time on 3.6
  • Change return type using Self

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.

2 participants