Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow typing members in annotations without imports #85

Draft
wants to merge 32 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
568db3b
default options
KotlinIsland Oct 22, 2021
753543f
unsafe-variance
KotlinIsland Oct 22, 2021
9bd86a5
support ignoring unused-ignore
KotlinIsland Oct 22, 2021
581ef9f
update readme etc with some info about why this project is based
KotlinIsland Nov 1, 2021
482f5d3
add basedmypy version info
KotlinIsland Nov 1, 2021
33f3ef3
keep a changelog
KotlinIsland Oct 29, 2021
f76899e
update setup.py for pypi
KotlinIsland Nov 2, 2021
8dff4e6
fix workflow for basedmypy
KotlinIsland Nov 2, 2021
203cf92
Fix mis-spelt "changlog" file name
FasterSpeeding Nov 11, 2021
01fcb87
fix the github templates
KotlinIsland Nov 11, 2021
8535d85
baseline
KotlinIsland Oct 23, 2021
e2e3eb1
start dev
KotlinIsland Nov 14, 2021
2d08f16
render types better
KotlinIsland Nov 14, 2021
b6a7fb8
Add based things from basedtypeshed
DetachHead Jan 3, 2022
fcd86f0
add legacy flag
KotlinIsland Dec 15, 2021
73c3a74
improve ci checks
KotlinIsland Jan 9, 2022
cd153e5
Add `default_return` option
KotlinIsland Nov 14, 2021
49b9fa5
raise minimum version to 3.7
KotlinIsland Feb 3, 2022
b3b5bf6
error codes for reveal and any
KotlinIsland Feb 17, 2022
b4dfc12
baseline 2
KotlinIsland Feb 24, 2022
6015050
update wheel build for basedmypy
KotlinIsland Mar 12, 2022
6a940c2
windows compatible
KotlinIsland Mar 22, 2022
b8eec9e
Add `ignore_any_from_error` feature
KotlinIsland Apr 24, 2022
d2b3cbc
infer function types from overloads, overrides and default values
KotlinIsland Nov 20, 2021
53c7ab5
support basedtyping.Untyped
KotlinIsland May 5, 2022
bf12528
Temp: disable inferring non-literals and super-types
KotlinIsland Jun 9, 2022
b24cf54
infer property types
KotlinIsland May 28, 2022
e6f5e9e
depend on basedtyping
KotlinIsland Jun 13, 2022
04c4aa8
hack `types.NoneType` to work as a value of `type[None]`
KotlinIsland Jun 28, 2022
234a1bd
run legacy tests as based
KotlinIsland Jun 11, 2022
4d989ce
primer: run against PR base, not master
KotlinIsland Jul 18, 2022
ae2adf9
Allow typing members in annotations without imports
KotlinIsland Dec 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 0 additions & 67 deletions .github/ISSUE_TEMPLATE/bug.md

This file was deleted.

35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Bug Report
description: Something isn't working as it should
labels: "bug"

body:
- type: textarea
attributes:
label: Describe the problem, ie expected/actual result (if it's not blatantly obvious)
- type: textarea
attributes:
label: Gist to reproduce
description: >
Full source code is appreciated. We also very much appreciate
it if you try to narrow the source down to a small stand-alone example.
render: python
- type: markdown
attributes:
value: "# Your Environment"
- type: textarea
attributes:
label: Basedmypy version
description: output of `mypy --version`
- type: input
attributes:
label: Command-line flags
- type: input
attributes:
label: Configuration options from `pyproject.toml` (and other config files)
- type: input
attributes:
label: Python version used
- type: input
attributes:
label: Operating system and version
description: Linux/macOS/Windows/wsl etc
9 changes: 3 additions & 6 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
contact_links:
- about: "Please check the linked documentation page before filing new issues."
name: "Common issues and solutions"
url: "https://mypy.readthedocs.io/en/stable/common_issues.html"
- about: "Please ask and answer any questions on the mypy Gitter."
name: "Questions or Chat"
url: "https://gitter.im/python/typing"
- about: "Please ask and answer usage questions in our official Discord."
name: Questions, help and discussion
url: "https://discord.gg/7y9upqPrk2"
41 changes: 0 additions & 41 deletions .github/ISSUE_TEMPLATE/crash.md

This file was deleted.

45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/crash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Crash Report
description: Use this form only if mypy reports an "INTERNAL ERROR", "IMPOSTER DETECTED" and/or gives a traceback.
labels: "crash"

body:
- type: dropdown
attributes:
label: Is this crash exclusive to basedmypy, or does it also occur with mypy?
options: [yes, no]
- type: textarea
attributes:
label: Crash Report
description: Tell us what happened.
- type: textarea
attributes:
label: Traceback
description: Please include the traceback and all other messages below (use `mypy --show-traceback`)
render: markdown
- type: textarea
attributes:
label: Gist to reproduce
description: >
Full source code is appreciated. We also very much appreciate
it if you try to narrow the source down to a small stand-alone example.
render: python
- type: markdown
attributes:
value: "# Your Environment"
- type: textarea
attributes:
label: Basedmypy version
description: output of `mypy --version`
- type: input
attributes:
label: Command-line flags
- type: input
attributes:
label: Configuration options from `pyproject.toml` (and other config files)
- type: input
attributes:
label: Python version used
- type: input
attributes:
label: Operating system and version
description: Linux/macOS/Windows/wsl etc
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ about: Report a problem with the documentation
labels: "documentation"
---

**Documentation**

(A clear and concise description of the issue.)
10 changes: 4 additions & 6 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
name: Feature
about: Submit a proposal for a new mypy feature
about: Submit a proposal for a based new mypy feature
labels: "feature"
---

**Feature**
Before you raise this, consider if it's better suited to a discussion: https://github.com/KotlinIsland/basedmypy/discussions

(A clear and concise description of your feature proposal.)
<!-- Please explain why this feature is based -->

**Pitch**

(Please explain why this feature should be implemented and how it would be used. Add examples, if applicable.)
<!-- Please include a full usage example of this feature -->
23 changes: 1 addition & 22 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
### Have you read the [Contributing Guidelines](https://github.com/python/mypy/blob/master/CONTRIBUTING.md)?

(Once you have, delete this section. If you leave it in, your PR may be closed without action.)

### Description

<!--
If this pull request closes or fixes an issue, write Closes #NNN" or "Fixes #NNN" in that exact
format.
-->

(Explain how this PR changes mypy.)

## Test Plan

<!--
If this is a documentation change, rebuild the docs (link to instructions) and review the changed pages for markup errors.
If this is a code change, include new tests (link to the testing docs). Be sure to run the tests locally and fix any errors before submitting the PR (more instructions).
If this change cannot be tested by the CI, please explain how to verify it manually.
-->

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Please include an amongus reference in this PR.
2 changes: 1 addition & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build-wheels:
if: github.repository == 'python/mypy'
if: github.repository == 'KotlinIsland/basedmypy'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mypy_primer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
echo "new commit"
git rev-list --format=%s --max-count=1 $GITHUB_SHA

MERGE_BASE=$(git merge-base $GITHUB_SHA origin/master)
MERGE_BASE=$(git merge-base $GITHUB_SHA origin/${{ github.base_ref }})
git checkout -b base_commit $MERGE_BASE
echo "base commit"
git rev-list --format=%s --max-count=1 base_commit
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Tests

on:
push:
branches: [master, 'release*']
branches: [master, 'release*', 'rebase-master']
tags: ['*']
pull_request:
paths-ignore:
Expand Down Expand Up @@ -43,8 +43,8 @@ jobs:
os: ubuntu-latest
toxenv: py
tox_extra_args: "-n 2"
- name: Test suite with py36-ubuntu, mypyc-compiled
python: '3.6'
- name: Test suite with py37-ubuntu, mypyc-compiled
python: '3.7'
arch: x64
os: ubuntu-latest
toxenv: py
Expand All @@ -63,17 +63,17 @@ jobs:
os: ubuntu-latest
toxenv: py
tox_extra_args: "-n 2"
- name: mypyc runtime tests with py36-macos
python: '3.6'
- name: mypyc runtime tests with py37-macos
python: '3.7'
arch: x64
os: macos-latest
toxenv: py
tox_extra_args: "-n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
- name: mypyc runtime tests with py36-debug-build-ubuntu
python: '3.6.8'
- name: mypyc runtime tests with py37-debug-build-ubuntu
python: '3.7.12'
arch: x64
os: ubuntu-latest
toxenv: py36
toxenv: py37
tox_extra_args: "-n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
debug_build: true
- name: Type check our own code (py37-ubuntu)
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ docs/source/_build
mypyc/doc/_build
*.iml
/out/
.venv
.venv*
venv/
.mypy_cache/
.incremental_checker_cache.json
Expand Down
Loading