This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""Output from mypy 0.711 | |
typeddict_pad.py:28: error: Module 'typing' has no attribute 'TypedDict'; maybe "_TypedDict"? | |
typeddict_pad.py:28: error: Name 'TypedDict' already defined (possibly by an import) | |
typeddict_pad.py:90: error: Unsupported operand types for + ("str" and "int") | |
typeddict_pad.py:107: error: Argument 2 has incompatible type "int"; expected "str" | |
typeddict_pad.py:110: error: Unsupported operand types for + ("int" and "str") | |
typeddict_pad.py:118: error: "Movie" has no attribute "clear" | |
typeddict_pad.py:128: error: Argument 1 to "update" of "TypedDict" has incompatible type "Dict[str, object]"; expected "TypedDict({'name'?: str, 'year'?: int})" | |
typeddict_pad.py:137: error: Argument 1 to "update" of "TypedDict" has incompatible type "Movie"; expected "TypedDict({'name'?: str, 'year'?: int})" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
https://twitter.com/AlSweigart/status/1170907280285417473 | |
Refactored from https://pastebin.com/raw/hU1m440m by Al Sweigart al@inventwithpython.com | |
""" | |
import re | |
import operator as op | |
import sys | |
from typing import NamedTuple, List, Any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Requires Python 3.8 | |
Expanding on a Tweet from RH using walrus and f-strings | |
https://twitter.com/raymondh/status/1153085050650423296 | |
""" | |
import logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
- panel>=0.6.0 | |
- holoviews | |
- hvplot | |
- param | |
- matplotlib | |
- scipy | |
- conda-forge::altair | |
- conda-forge::plotly | |
- conda-forge::vtk=8.1.1 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.