mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
Use python.typing.org for typing documentation links (#17323)
## Summary There is a new official URL for the typing documentation: https://typing.python.org/ Change all https://typing.readthedocs.io/ links to use the new sub domain, which is slightly shorter and looks more official. ## Test Plan Tested to see if each and every new URL is accessible. I noticed that some links go to https://typing.python.org/en/latest/source/stubs.html which seems to be outdated, but that is a separate issue. The same page shows up for the old URL.
This commit is contained in:
parent
144484d46c
commit
5fef4d4572
37 changed files with 57 additions and 57 deletions
|
@ -535,7 +535,7 @@ impl<'a> SuppressionsBuilder<'a> {
|
|||
// > imports, or other executable code, silences all errors in the file.
|
||||
// > Blank lines and other comments, such as shebang lines and coding cookies,
|
||||
// > may precede the # type: ignore comment.
|
||||
// > https://typing.readthedocs.io/en/latest/spec/directives.html#type-ignore-comments
|
||||
// > https://typing.python.org/en/latest/spec/directives.html#type-ignore-comments
|
||||
let is_file_suppression = comment.kind.is_type_ignore() && !self.seen_non_trivia_token;
|
||||
|
||||
let suppressed_range = if is_file_suppression {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue