Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
b46532c
Miscallenous fixes
Marti2203 Mar 3, 2025
7e54584
Fixes
Marti2203 Mar 3, 2025
a28e3c9
Apply patch generated by AutoCodeRover
code-rover-bot[bot] Mar 3, 2025
d781914
Miscallenous Fixes
Marti2203 Mar 3, 2025
200ea73
Remove bug
Marti2203 Mar 3, 2025
3669932
FIxes
Marti2203 Mar 3, 2025
81e3633
Apply patch generated by AutoCodeRover
code-rover-bot[bot] Mar 3, 2025
0d2e320
Boom
Marti2203 Mar 6, 2025
30e8010
Apply patch generated by AutoCodeRover
code-rover-bot[bot] Mar 6, 2025
a6d62d6
Boom 2
Marti2203 Mar 10, 2025
558a24c
Boom 3
Marti2203 Mar 10, 2025
34a9f3e
Apply patch generated by AutoCodeRover
code-rover-bot[bot] Mar 10, 2025
e0b7efb
Boom 4
Marti2203 Mar 10, 2025
cf0ded3
Boom 5
Marti2203 Mar 10, 2025
e539b95
Boom 6
Marti2203 Mar 10, 2025
d104265
Boom 7
Marti2203 Mar 10, 2025
5e15be4
Boom 8
Marti2203 Mar 10, 2025
d4d9982
Boom 9
Marti2203 Mar 10, 2025
691730b
Boom 10
Marti2203 Mar 10, 2025
be3ce2a
Boom 11
Marti2203 Mar 10, 2025
2dcef9d
Boom 12
Marti2203 Mar 10, 2025
9b3e59b
Boom 13
Marti2203 Mar 10, 2025
b11eb38
Boom 14
Marti2203 Mar 10, 2025
7f4926d
Boom 15
Marti2203 Mar 11, 2025
6082df4
Boom boom boom
Marti2203 Mar 11, 2025
a3f72b8
Boom 16
Marti2203 Mar 11, 2025
e9d1b91
Boom 17
Marti2203 Mar 11, 2025
ed42a17
Boom 18
Marti2203 Mar 11, 2025
1dc670c
Boom 19
Marti2203 Mar 11, 2025
e06d622
Boom 20
Marti2203 Mar 11, 2025
e4c7267
Boom 21
Marti2203 Mar 11, 2025
acac3e2
Toughie
Marti2203 Mar 11, 2025
749e91f
Boom 22
Marti2203 Mar 11, 2025
3bcbb84
Boom 23
Marti2203 Mar 11, 2025
75a6a0c
Boom 24
Marti2203 Mar 11, 2025
2125cdd
Boom 25
Marti2203 Mar 11, 2025
98a4ff1
Boom 26
Marti2203 Mar 11, 2025
0e9e963
Boom 27
Marti2203 Mar 11, 2025
56abeb5
Boom 28
Marti2203 Mar 11, 2025
a709fa1
Boom 29!
Marti2203 Mar 11, 2025
9598f48
Boom 30!
Marti2203 Mar 11, 2025
d473c79
Boom 31!
Marti2203 Mar 11, 2025
22007ac
Boom 32!
Marti2203 Mar 11, 2025
5c6f9ee
Boom 33!
Marti2203 Mar 11, 2025
23ebb5b
Boom 34!
rshariffdeen Mar 12, 2025
b512317
Boom 35!
Marti2203 Mar 13, 2025
b79aec9
Update discord/flags.py
Marti2203 Mar 13, 2025
0eee29e
Boom 36!
Marti2203 Mar 13, 2025
8097966
Revert "Boom 36!"
Marti2203 Mar 14, 2025
c2f5eef
Revert "Revert "Boom 36!""
Marti2203 Mar 14, 2025
580efc8
Revert "Revert "Revert "Boom 36!"""
Marti2203 Mar 14, 2025
96a2570
Revert "Revert "Revert "Revert "Boom 36!""""
Marti2203 Mar 14, 2025
6513ea0
Revert "Revert "Revert "Revert "Revert "Boom 36!"""""
Marti2203 Mar 18, 2025
991b60d
Revert "Revert "Revert "Revert "Revert "Revert "Boom 36!""""""
Marti2203 Mar 18, 2025
934effd
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Boom 36!"""""""
Marti2203 Mar 18, 2025
a2f75fe
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Boom …
Marti2203 Mar 18, 2025
fb75309
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…
Marti2203 Mar 18, 2025
887101a
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…
Marti2203 Mar 18, 2025
18c787c
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…
Marti2203 Mar 18, 2025
192087e
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…
Marti2203 Mar 18, 2025
6bab152
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…
Marti2203 Mar 18, 2025
f5d10ef
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…
Marti2203 Mar 21, 2025
efd9a17
adding comment to trigger QG
rshariffdeen Mar 24, 2025
0885b82
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…
Marti2203 Mar 25, 2025
997c7d3
Apply patch generated by AutoCodeRover
code-rover-bot[bot] Mar 25, 2025
dc06223
Revert "Apply patch generated by AutoCodeRover"
Marti2203 Mar 25, 2025
b4f8371
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…
Marti2203 Mar 27, 2025
cc7af99
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…
Marti2203 Apr 30, 2025
56d057d
Update sonar info
Marti2203 May 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,14 @@ jobs:
# with:
# name: docs-${{ matrix.language }}
# path: docs/_build/html/*
sonarqube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1 change: 0 additions & 1 deletion discord/automod.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,6 @@ def to_dict(self) -> AutoModerationRulePayload:
'actions': [action.to_dict() for action in self.actions], 'actions': [action.to_dict() for action in self.actions],
'enabled': self.enabled, 'enabled': self.enabled,
'exempt_roles': [str(role_id) for role_id in self.exempt_role_ids], 'exempt_roles': [str(role_id) for role_id in self.exempt_role_ids],

'exempt_channels': [str(channel_id) for channel_id in self.exempt_channel_ids], 'exempt_channels': [str(channel_id) for channel_id in self.exempt_channel_ids],
} # type: ignore # trigger types break the flow here.

Expand Down
5 changes: 0 additions & 5 deletions discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2730,14 +2730,9 @@ async def create_thread(

channel_payload = {
'name': name,
'name': name,

'auto_archive_duration': auto_archive_duration or self.default_auto_archive_duration,
'rate_limit_per_user': slowmode_delay,
'rate_limit_per_user': slowmode_delay,
'type': 11, # Private threads don't seem to be allowed
'type': 11, # Private threads don't seem to be allowed

}

if applied_tags is not MISSING:
Expand Down
19 changes: 8 additions & 11 deletions discord/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,22 +216,22 @@ def to_dict(self) -> ButtonComponentPayload:
'style': self.style.value,
'disabled': self.disabled,
}

if self.sku_id:
payload['sku_id'] = str(self.sku_id)

if self.label:
payload['label'] = self.label

if self.custom_id:
payload['custom_id'] = self.custom_id

if self.url:
payload['url'] = self.url

if self.emoji:
payload['emoji'] = self.emoji.to_dict()

return payload


Expand Down Expand Up @@ -302,7 +302,6 @@ def to_dict(self) -> SelectMenuPayload:
'type': self.type.value, # type: ignore # we know this is a select menu.
'custom_id': self.custom_id,
'min_values': self.min_values,
'min_values': self.min_values,
'max_values': self.max_values,
'disabled': self.disabled,
}
Expand Down Expand Up @@ -644,13 +643,11 @@ def from_user(cls, user: Snowflake, /) -> Self:


@overload
def _component_factory(data: ActionRowChildComponentPayload) -> Optional[ActionRowChildComponentType]:
...
def _component_factory(data: ActionRowChildComponentPayload) -> Optional[ActionRowChildComponentType]: ...


@overload
def _component_factory(data: ComponentPayload) -> Optional[Union[ActionRow, ActionRowChildComponentType]]:
...
def _component_factory(data: ComponentPayload) -> Optional[Union[ActionRow, ActionRowChildComponentType]]: ...


def _component_factory(data: ComponentPayload) -> Optional[Union[ActionRow, ActionRowChildComponentType]]:
Expand Down
2 changes: 1 addition & 1 deletion discord/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def __ne__(self, other: object) -> bool:
return not self.__eq__(other)

def __hash__(self) -> int:
return hash(self.value)
return hash((self.__class__, self.value))

def __repr__(self) -> str:
return f'<{self.__class__.__name__} value={self.value}>'
Expand Down
3 changes: 2 additions & 1 deletion discord/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ def __init__(
piping_stderr = True

args = [executable, *args]
kwargs = {'stdout': subprocess.PIPE, 'stderr': subprocess.PIPE if piping_stderr else stderr}
kwargs = {'stdout': subprocess.PIPE,
'stderr': subprocess.PIPE if piping_stderr else stderr}
kwargs.update(subprocess_kwargs)

# Ensure attribute is assigned even in the case of errors
Expand Down
4 changes: 2 additions & 2 deletions discord/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
The MIT License (MIT)

JUST
Copyright (c) 2015-present Rapptz

Permission is hereby granted, free of charge, to any person obtaining a
Expand Down Expand Up @@ -111,7 +111,7 @@
return False

def __bool__(self) -> bool:
return False
return "2"

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

Check failure on line 114 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Expression of type "Literal['2']" cannot be assigned to return type "bool"   "Literal['2']" is incompatible with "bool" (reportReturnType)

def __hash__(self) -> int:
return 0
Expand Down Expand Up @@ -643,7 +643,7 @@
def _to_json(obj: Any) -> str:
return orjson.dumps(obj).decode('utf-8')

_from_json = orjson.loads # type: ignore

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

Check warning on line 646 in discord/utils.py

View workflow job for this annotation

GitHub Actions / check 3.x

Unnecessary "# type: ignore" comment

else:

Expand Down
14 changes: 14 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sonar.projectKey=AutoCodeRoverSG_simple-repo
sonar.organization=autocoderoversg


# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=EquiBind
#sonar.projectVersion=1.0


# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
Loading