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
| » ./python.exe -m test -w -v test_typing | |
| == CPython 3.11.0a4+ (heads/main-dirty:ef3ef6fa43, Jan 20 2022, 20:48:25) [Clang 11.0.0 (clang-1100.0.33.16)] | |
| == macOS-10.14.6-x86_64-i386-64bit little-endian | |
| == cwd: /Users/sobolev/Desktop/cpython/build/test_python_7182æ | |
| == CPU count: 4 | |
| == encodings: locale=UTF-8, FS=utf-8 | |
| 0:00:00 load avg: 1.84 Run tests sequentially | |
| 0:00:00 load avg: 1.84 [1/1] test_typing | |
| test_all (test.test_typing.AllTests) ... ok | |
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
| ====================================================================== | |
| ERROR: test_basic (test.test_typing.NewTypeCTests) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/sobolev/Desktop/cpython/Lib/test/test_typing.py", line 4017, in setUp | |
| raise ValueError | |
| ^^^^^^^^^^^^^^^^ | |
| ValueError | |
| ====================================================================== |
This file has been truncated, but you can view the full file.
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 lang="en"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" /><title>Cosmic Ray Report</title></head><body><div class="container"><h1><p class="text-dark">Cosmic Ray Report</p></h1></div><div class="container"><div class="mb-1" id="summary_info___accordion"><div class="card"><a data-toggle="collapse" data-target="#summary_info___collapse_1" aria-expanded="true" aria-controls="summary_info___collapse_1" href="#"><div class="card-header" id="summary_info___heading_1"><button class="btn btn-outline-dark"><h4 class="m-0">Summary info</h4></button></div></a><div aria-labelledby="summary_info___heading_1" data-parent="#summary_info___accordion" class="collapse show" id="summary_info___collapse_1"><div class="card-body">< |
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
| import abc | |
| import dataclasses | |
| from typing import Callable, Generic, TypeVar | |
| # TODO: pip install returns | |
| # TODO: add `returns.contrib.mypy.returns_plugin` to mypy plugins | |
| # TODO: read the docs at https://github.com/dry-python/returns | |
| from returns.primitives.hkt import Kind1, SupportsKind1, kinded | |
| _ValueType = TypeVar('_ValueType') |
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 typing import Any, TypeVar, Callable, Generic, Optional, TYPE_CHECKING | |
| from returns.functions import compose | |
| if not TYPE_CHECKING: | |
| reveal_type = print | |
| T = TypeVar('T') | |
| N = TypeVar('N') |
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
| ex.py::test_draw_law: | |
| - during reuse phase (0.13 seconds): | |
| - Typical runtimes: 16-105 ms, ~ 52% in data generation | |
| - 2 passing examples, 0 failing examples, 0 invalid examples | |
| - during generate phase (30.93 seconds): | |
| - Typical runtimes: 15-33 ms, ~ 89% in data generation | |
| - 998 passing examples, 0 failing examples, 13 invalid examples | |
| - Events: |
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
Show hidden characters
| { | |
| "env": { | |
| "node": true, | |
| "browser": true, | |
| "es6": true | |
| }, | |
| "globals": { | |
| "document": false, | |
| "navigator": false, | |
| "window": false |
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
| A002: "dict" is used as an argument and thus shadows a python builtin, consider renaming the argument | |
| 1 manimlib/utils/config_ops.py | |
| Total: 1 | |
| B001: Do not use bare `except:`, it also catches unexpected events like memory errors, interrupts, system exit, and so on. Prefer `except Exception:`. If you're sure what you're doing, be explicit and write `except BaseException:`. | |
| 1 manimlib/mobject/svg/drawings.py | |
| 4 manimlib/mobject/svg/svg_mobject.py | |
| 1 manimlib/utils/color.py | |
| 1 manimlib/utils/sounds.py | |
| Total: 7 |
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
| # -*- coding: utf-8 -*- | |
| import json | |
| import toml | |
| def read_pipenv_lock(): | |
| with open('Pipfile.lock') as lock: | |
| return json.loads(lock.read()) |
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
| #!/usr/bin/env bash | |
| # Running: `bash create_merge_conflict.sh` | |
| set -e | |
| PROJECT_NAME="pipenv-merge-conflicts" | |
| # Creating project structure: | |
| rm -rf "$PROJECT_NAME" |