slackapi / python-slack-sdk

Slack Developer Kit for Python
https://slack.dev/python-slack-sdk/
MIT License
3.81k stars 838 forks source link

Add TypedDict to slack_sdk.models classes #1515

Open yassun7010 opened 6 days ago

yassun7010 commented 6 days ago

The Client treats Json-format Request Bodies as dict, but can benefit from completion and static analysis if TypedDict is supported.

Category (place an x in each of the [ ])

seratch commented 5 days ago

Hi @yassun7010, thanks for sharing the idea!

TypedDict is a relatively new feature introduced in Python 3.8, and this SDK still supports Python 3.6 and 3.7. We know these older versions are already EOLed, but in reality, many apps need a certain amount of time to upgrade to a newer runtime. Therefore, we don't immediately cut support for those versions.

We may consider dropping support for the old versions starting with the next major release (v4), but we don't plan to bump the major version in the short term. We will keep this issue open as a future enhancement idea. Thanks again for sharing this!

yassun7010 commented 4 days ago

@seratch Thanks for explaining the situation.

Looking forward to the v4 release ;)