If code changes were made then they have been tested.
I have updated the documentation to reflect the changes.
This PR fixes an issue.
This PR adds something new (e.g. new method or parameters).
This PR is a breaking change (e.g. methods or parameters removed/renamed)
This PR is not a code change (e.g. documentation, README, ...)
## Summary
Just adding back the old feature to 2.0 :mmlool:
<!-- What is this pull request for? Does it fix any issues? -->
## Checklist
<!-- Put an x inside [ ] to check it, like so: [x] -->
- [ ] If code changes were made then they have been tested.
- [ ] I have updated the documentation to reflect the changes.
- [ ] This PR fixes an issue.
- [ ] This PR adds something new (e.g. new method or parameters).
- [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
- [ ] This PR is **not** a code change (e.g. documentation, README, ...)
paris-ci
(Migrated from github.com)
reviewed 2021-08-28 19:50:40 +00:00
> ```python
> except Exception as e:
> if silent:
> pass
> else:
> raise e
> ```
>
> can be shortened to:
>
> ```python
> except Exception as e:
> if not silent:
> raise e
> ```
That's already done [2bc75d5](https://github.com/iDevision/enhanced-discord.py/pull/9/commits/2bc75d51eadbd10fa357fa064d88a14f67393afe)
If a parameter has a default value different to None (and use it for anything), it is not an optional parameter.
The usage of `Optional` is wrong.
```suggestion
async def delete(self, *, delay: Optional[float] = None, silent: bool = False) -> None:
```
If a parameter has a default value different to `None` (and use it for anything), it is not an optional parameter.
IAmTomahawkx
(Migrated from github.com)
approved these changes 2021-08-29 17:56:51 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Just adding back the old feature to 2.0 :mmlool:
Checklist
..versionadded:: 2.0
can be shortened to:
That's already done 2bc75d5
ah, my bad
Nah, it's my bad for not noticing it in the first place, just kinda copy-pasted the old code.
You are not using the error, so, you can do
Good point, let me change that
Wait yeah, I was wrong before. It's versionchanged.
The usage of
Optionalis wrong.If a parameter has a default value different to
None(and use it for anything), it is not an optional parameter.