File: upgrade_out_default_highest_reversed.md

package info (click to toggle)
python-auto-pytabs 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 444 kB
  • sloc: python: 999; xml: 860; sh: 24; makefile: 13; javascript: 1
file content (22 lines) | stat: -rw-r--r-- 405 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
===+ "Python 3.10+"
    ```python foo="bar"
    
    def bar(baz: str | None) -> set[str]:
        ...
    ```

=== "Python 3.9+"
    ```python foo="bar"
    from typing import Optional
    
    def bar(baz: Optional[str]) -> set[str]:
        ...
    ```

=== "Python 3.7+"
    ```python foo="bar"
    from typing import Set, Optional
    
    def bar(baz: Optional[str]) -> Set[str]:
        ...
    ```