Releases: KotlinIsland/basedmypy
Releases · KotlinIsland/basedmypy
2.9.0
v2.8.1
2.8.0
2.7.0
based on mypy 1.13.0
Added
- typed
functools.wraps
correctly - typed
builtins.ellipsis
/types.EllipsisType
correctly - disable
bytearray
andmemoryview
promotions by default - support
typing.type_check_only
- support default values on type parameters
- support based type notation in type alias statements
- support
basedtyping.FunctionType
Fixes
- fixed crash with
re
plugin - fixed crash with
Intersection
cache - fixed definition of
types.NoneType
Enhancements
- fixed default configuration in the docs
2.6.0
based on mypy 1.11.1
Added
- Any parameter
_
will be inferred asobject
(#687) work_not_properly_function_names
made available to per module configuration (#699)- Support
BASEDMYPY_TYPE_CHECKING
(#702) - Enable stub mode within
TYPE_CHECKING
branches (#702) - Infer from overloads - add default value in impl (#697)
- Warn for missing returns with explicit
Any
return types (#715)
Fixes
2.5.0
2.4.0
Based on mypy 1.8.0
2.3.0
Based on mypy 1.7.1
Added
- f-string format specs are checked (#543)
- Narrow type on initial assignment (#547)
- Annotations in function bodies are not analyzed as evaluated (#564)
- Invalid
cast
s show an error (#573) - Argument names are validated for subtypes (#562)
- Type-guards narrow in the negative (#553)
- Conditional types for asymmetric type-guards (#553)
- Static conditions report an error (#553)
- Regex groups are special-cased (#531)
- f-strings will show an error if the value doesn't define a stringification (#565)
Enhancements
- Show 'narrowed from' in
reveal_type
(#550) --color-output
is enabled by default (#531)--ide
will disable color-output (#531)- Output lines won't wrap if not connected to a terminal (#531)
Fixes
2.2.1
Fixes a regression with the default config regarding explicit-override
2.2.0
Based on mypy 1.6.0
Our agile development teams have been extremely effective with the use of burndown charts. They've already burnt down two floors of our new office 😊.
Added
- type-guards have been reworked from the ground up (#516)
TypeGuard
is retained in inferred types (#504)- Type narrowing is applied from lambda execution (#504)
--ide
flag (#501)
Enhancements
show-error-context
/pretty
are now on by default (#501)- Show fake column number when
--show-error-end
(#501) - Error messages point to basedmypy docs (#516)
Callable
types in error messages don't containmypy_extensions
(#516)
Fixes
- Don't show "X defined here" when error context is hidden (#498)
- Fix issue with reveal code in ignore message (#490)
- Fixed union at join for same
type
literals. (#488) - Don't report false
Any
expressions when inferring lambda type (#515) - Correctly match overload when it contains an
Any
expression (#515) - Fixed the variance of
Mapping
s key type (#527)