Skip to content

Add Missing Conversions of type to Corresponding Enum from telegram.constants#4067

Merged
Bibo-Joshi merged 2 commits intomasterfrom
enum-type-attributes
Jan 17, 2024
Merged

Add Missing Conversions of type to Corresponding Enum from telegram.constants#4067
Bibo-Joshi merged 2 commits intomasterfrom
enum-type-attributes

Conversation

@Bibo-Joshi
Copy link
Member

No description provided.

Copy link
Member

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

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

yeah, I had seen some places where this was missed. Is there a way to easily test this for all classes (test should probably assume that self.type needs an enum reference)

@Bibo-Joshi
Copy link
Member Author

Added a simple regex testcase and actually found another place to apply the change. I excluded passport stuff - we don't have enums for that and I don't like touching that stuff if not really necessary 😬

Copy link
Member

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

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

The general test case looks good and I'm fine with excluding the passport directory!

@Bibo-Joshi Bibo-Joshi merged commit b73dc57 into master Jan 17, 2024
@Bibo-Joshi Bibo-Joshi deleted the enum-type-attributes branch January 17, 2024 20:32
kenjitagawa pushed a commit to kenjitagawa/python-telegram-bot that referenced this pull request Jan 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2024
@Bibo-Joshi Bibo-Joshi added 🔌 enhancement pr description: enhancement and removed enhancement labels Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🔌 enhancement pr description: enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants