This file contains hidden or 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
| class Jdict(dict): | |
| def __new__(cls, obj): | |
| if isinstance(obj, dict): | |
| instance = super().__new__(cls) | |
| instance.update(obj) | |
| return instance | |
| elif isinstance(obj, list): | |
| return [cls(i) for i in obj] | |
| else: | |
| return obj |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style>py-script,py-env {display: none}</style> | |
| <script defer src="https://pyscript.net/alpha/pyscript.js"></script> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <py-env> | |
| - htag==0.4.7 | |
| - htbulma | |
| </py-env> |