Skip to content

Conversation

miky-rola
Copy link
Contributor

  • Add type anotation to methods and functions
  • Use full path for imports instead of ..
  • Remove legacy Union, Optional, Dict and List in functions and methods
  • Use isinstance for type check instead of using the type itself
  • Replace type anotation which was using any with the right Any

Comment on lines +6 to +10
from typing import Any
from push_notifications.fields import UNSIGNED_64BIT_INT_MAX_VALUE, hex_re
from push_notifications.models import APNSDevice, GCMDevice, WebPushDevice, WNSDevice
from push_notifications.settings import PUSH_NOTIFICATIONS_SETTINGS as SETTINGS
from django.db.models import QuerySet
Copy link
Member

Choose a reason for hiding this comment

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

👍🏼

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@50-Course any update on this PR

Copy link
Member

Choose a reason for hiding this comment

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

@miky-rola sorry its midnight out here, timezone-ish 😅 - so simply went to bed immediately, its is 4am right now. but finsihed reviewing.

Copy link
Member

@50-Course 50-Course left a comment

Choose a reason for hiding this comment

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

hi, thanks for these updates.

@50-Course 50-Course merged commit 4c47abc into jazzband:master Sep 22, 2025
1 check passed
50-Course added a commit that referenced this pull request Sep 22, 2025
jamaalscarlett pushed a commit that referenced this pull request Sep 22, 2025
@50-Course
Copy link
Member

Hi @miky-rola, thanks for this PR however, this just broke compatibility support for ~3.9, as much as we would love to stick to the new typing system, we also have to support (presently) existing systems, can you please reupdate this PR, newly with support for this?

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