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
def GetFields(): | |
fields = dict( | |
tabs=dict( | |
_id='tabs', | |
caption='', | |
caption_cmd='', | |
caption_color_expr='', | |
caption_horizontal_size_policy='Preferred', | |
caption_vertical_size_policy='Fixed', | |
cmd='', |
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
from pathlib import Path | |
import attr | |
from sqlalchemy import Column | |
from sqlalchemy import create_engine | |
from sqlalchemy import ForeignKey | |
from sqlalchemy import Integer | |
from sqlalchemy import MetaData | |
from sqlalchemy import String | |
from sqlalchemy import Table |
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
""" | |
Change the "default" flags for files in a project, so new files will require full type annotations. | |
If a file has no flags, it adds "allow-untyped-defs". | |
If a file already has "disallow-untyped-defs", that flag is removed. | |
Together with this script, one should update the mypy.ini file of a project: | |
[mypy.app.*] | |
disallow_untyped_defs = true |
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
diff --git a/src/_pytest/_code/code.py b/src/_pytest/_code/code.py | |
index 0288d7a54..54d5956d4 100644 | |
--- a/src/_pytest/_code/code.py | |
+++ b/src/_pytest/_code/code.py | |
@@ -486,9 +486,7 @@ class ExceptionInfo(Generic[E]): | |
.. versionadded:: 7.4 | |
""" | |
- assert ( | |
- exception.__traceback__ |
OlderNewer