Commit Graph

  • b051943504 add exists too Douglas Creager 2025-12-18 09:00:07 -05:00
  • 6d4681e65d add retain_one extension method Douglas Creager 2025-12-17 16:32:13 -05:00
  • 8d32ad1cab [ty] Add support for attribute docstrings (#22036) Aria Desires 2025-12-18 07:18:20 -05:00
  • b2a8c42b51 [ty] Correctly encode multiline tokens for clients not supporting multiline tokens (#22033) Micha Reiser 2025-12-18 12:38:21 +01:00
  • 2f6b96f2c5 [ty] Skip literal branches in union builder if it contains no literals micha/union-builder-literal Micha Reiser 2025-12-18 09:33:19 +01:00
  • eecc160d18 More lazy negated computations Micha Reiser 2025-12-18 09:17:00 +01:00
  • 537deabc72 Defer insertion Micha Reiser 2025-12-18 09:01:08 +01:00
  • 7bb5dd87ff [ty] Fix goto-declaration on the RHS of from module import submodule (#22042) Aria Desires 2025-12-18 02:28:05 -05:00
  • a633f320d7 [ty] Small union builder nits Micha Reiser 2025-12-18 08:17:56 +01:00
  • 6caa37fb27 support rendering __doc__ on hover gankra/dunder-doc Aria Desires 2025-12-18 01:11:15 -05:00
  • 06305f3c02 Make analyze_single_pattern_predicate a #[salsa::tracked] function (#22045) Charlie Marsh 2025-12-17 22:01:50 -05:00
  • 9cc132f098 [eradicate] ignore ruff:disable and ruff:enable comments in ERA001 (#22038) Amethyst Reese 2025-12-17 17:04:49 -08:00
  • cf8d2e35a8 New rule to prevent implicit string concatenation in collections (#21972) Shantanu 2025-12-17 14:37:01 -08:00
  • 0290f5dc3b [flake8-bandit] Fix broken link (S704) (#22039) Brent Westbrook 2025-12-17 17:35:04 -05:00
  • 5bb9ee2a9d [ty] Respect deferred values in keyword arguments et al for .pyi files (#22029) Charlie Marsh 2025-12-17 17:02:10 -05:00
  • e1c6e2e26a Add test case for missing VIRTUAL_ENV zb/virtual-env-missing Zanie Blue 2025-12-17 14:48:48 -06:00
  • 638f230910 [ty] improve rendering of signatures in hovers (#22007) Aria Desires 2025-12-17 15:09:31 -05:00
  • 4a90f33781 Move to --no-active-virtual-env flag zb/ignore-virtual-env Zanie Blue 2025-12-17 13:55:03 -06:00
  • 85f5039b11 Always defer charlie/always-defer Charlie Marsh 2025-12-17 13:35:53 -05:00
  • b36ff75a24 [ty] Don't add identical lower/upper bounds multiple times when inferring specializations (#22030) Douglas Creager 2025-12-17 13:35:52 -05:00
  • 30c3f9aafe [ty] Apply narrowing to len calls based on argument size (#22026) Charlie Marsh 2025-12-17 13:15:58 -05:00
  • 1f8b187aa1 [ty] Add TY_IGNORE_ACTIVE_VIRTUAL_ENV to ignore VIRTUAL_ENV Zanie Blue 2025-12-17 09:15:25 -06:00
  • 883701ae88 [flake8-use-pathlib] Make fixes unsafe when types change in compound statements (PTH104, PTH105, PTH109, PTH115) (#22009) chiri 2025-12-17 20:31:27 +03:00
  • 96dbe609eb Respect deferred values in keyword arguments et al for .pyi files Charlie Marsh 2025-12-17 11:29:55 -05:00
  • 0bd7a94c27 [ty] Improve unsupported-base and invalid-super-argument diagnostics to avoid extremely long lines when encountering verbose types (#22022) Alex Waygood 2025-12-17 14:43:11 +00:00
  • 421f88bb32 [refurb] Extend support for Path.open (FURB101, FURB103) (#21080) Bhuminjay Soni 2025-12-17 19:48:13 +05:30
  • b0eb39d112 [ty] ecosystem-analyzer: Flush full stderr output in case of panics (#22023) David Peter 2025-12-17 15:02:59 +01:00
  • 260f463edd Update setup.md (#22024) charliecloudberry 2025-12-17 14:56:25 +01:00
  • 52849a5e68 [syntax-errors] Annotated name cannot be global (#20868) Bhuminjay Soni 2025-12-17 19:09:47 +05:30
  • 2a61fe2353 [ty] Handle field specifier functions that accept **kwargs and recognize metaclass-based transformers as instances of DataclassInstance (#22018) David Peter 2025-12-17 14:22:16 +01:00
  • 764ad8b29b [ty] Improve disambiguation of types in many cases (#22019) Alex Waygood 2025-12-17 11:41:07 +00:00
  • 39b5c696e2 [ty] Experiment micha/has_relation_to Micha Reiser 2025-12-17 12:25:01 +01:00
  • 85af715880 Fix playground Share button showing "Copied!" before clipboard copy completes (#21942) mahiro 2025-12-17 20:16:01 +09:00
  • b0bc990cbf [pyupgrade] Fix parsing named Unicode escape sequences (UP032) (#21901) Phong Do 2025-12-16 22:33:39 +01:00
  • d5e7e448fd fix goto-uses gankra/find-ref Aria Desires 2025-12-16 13:40:51 -05:00
  • ad3de4e488 [ty] Improve rendering of default values for function args (#22010) Aria Desires 2025-12-16 13:39:19 -05:00
  • 2214a46139 [ty] Don't use implicit superclass annotation when converting a class constructor into a Callable (#22011) Douglas Creager 2025-12-16 13:37:11 -05:00
  • c02bd11b93 [ty] Infer typevar specializations for Callable types (#21551) Douglas Creager 2025-12-16 12:16:49 -05:00
  • eeaaa8e9fe [ty] propagate classmethod-ness through decorators returning Callables (#21958) Carl Meyer 2025-12-16 09:16:40 -08:00
  • 7f7485d608 [ty] Fixed benchmark markdown auto-linenumbers (#22008) Rob Hand 2025-12-16 15:38:11 +00:00
  • d755f3b522 [ty] Improve syntax-highlighting of constants (#22006) Aria Desires 2025-12-16 09:23:40 -05:00
  • 83168a1bb1 [ty] highlight special type syntax in hovers as xml (#22005) Aria Desires 2025-12-16 09:20:35 -05:00
  • 0f373603eb [ty] Suppress keyword argument completions unless we're in the "arguments" Andrew Gallant 2025-12-15 09:23:32 -05:00
  • cc23af944f [ty] Tweak how we show qualified auto-import completions Andrew Gallant 2025-12-12 10:30:42 -05:00
  • 0589700ca1 [ty] Prefer unqualified imports over qualified imports Andrew Gallant 2025-12-12 10:04:05 -05:00
  • 43d983ecae [ty] Add tests for how qualified auto-imports are shown Andrew Gallant 2025-12-12 10:11:35 -05:00
  • 5c69bb564c [ty] Add a test capturing sub-optimal auto-import heuristic Andrew Gallant 2025-12-11 14:07:58 -05:00
  • 89fed85a8d [ty] Switch completion tests to use "insertion" text in snapshots Andrew Gallant 2025-12-11 14:06:29 -05:00
  • 051f6896ac [ty] Remove extra headings and split examples in the overrides configuration docs (#21994) Zanie Blue 2025-12-16 06:57:06 -06:00
  • 5b1d3ac9b9 [ty] Document TY_CONFIG_FILE (#22001) David Peter 2025-12-16 13:15:24 +01:00
  • b2b0ad38ea [ty] Cache KnownClass::to_class_literal (#22000) Micha Reiser 2025-12-16 13:04:12 +01:00
  • 19881f4cc3 [ty] Cache legacy generic context micha/cache-legacy-generic-context Micha Reiser 2025-12-16 12:48:57 +01:00
  • 01c0a3e960 [ty] Fix benchmark assertion (#22003) Micha Reiser 2025-12-16 12:24:54 +01:00
  • 5c942119f8 Add uv and ty to the Ruff README (#21996) Zanie Blue 2025-12-16 03:37:15 -06:00
  • 2acf1cc0fd [ty] Infer precise types for isinstance(…) calls involving typevars (#21999) David Peter 2025-12-16 10:34:30 +01:00
  • 4fdbe26445 [ty] Use FxHashMap in Signature::has_relation_to (#21997) Micha Reiser 2025-12-16 10:10:45 +01:00
  • 0fc9e5e0e9 Merge branch 'dcreager/explicit-constriants' into cjm/callable-return-fixed cjm/callable-return-fixed Carl Meyer 2025-12-15 19:50:14 -08:00
  • 682d29c256 [ty] Avoid enforcing standalone expression for tests in f-strings (#21967) Charlie Marsh 2025-12-15 22:31:04 -05:00
  • 7f7fb50a43 update expected output for graph display test dcreager/explicit-constriants Carl Meyer 2025-12-15 18:06:47 -08:00
  • 0b6bd9a735 store this in constraint, not node Douglas Creager 2025-12-15 16:36:53 -05:00
  • c790aa7474 track whether constraints are explicit or not Douglas Creager 2025-12-15 15:54:23 -05:00
  • 298e2dcb4e track source_order in PathAssignments Douglas Creager 2025-12-14 20:19:08 -05:00
  • 8e13765b57 [ty] Use title for configuration code fences in ty reference documentation (#21992) Zanie Blue 2025-12-15 15:36:08 -06:00
  • 44256deae3 Merge remote-tracking branch 'origin/main' into dcreager/callable-return Douglas Creager 2025-12-15 14:57:34 -05:00
  • 7d3b7c5754 [ty] Consistent ordering of constraint set specializations, take 2 (#21983) Douglas Creager 2025-12-15 14:24:08 -05:00
  • b291969813 proof of concept: clickable types in hover gankra/clickdoc Aria Desires 2025-12-15 14:18:45 -05:00
  • d6a5bbd91c [ty] Remove invalid statement-keyword completions in for-statements (#21979) RasmusNygren 2025-12-15 18:56:34 +01:00
  • 1df6544ad8 [ty] Avoid caching trivial is-redundant-with calls (#21989) Micha Reiser 2025-12-15 18:45:03 +01:00
  • 06a02fc46e Revert "fix py-fuzzer test failure" Douglas Creager 2025-12-15 12:26:33 -05:00
  • 2897d498fd add TODO Douglas Creager 2025-12-15 12:12:53 -05:00
  • 4e3dd58815 fix Class3 example Douglas Creager 2025-12-15 12:07:32 -05:00
  • 26c847c229 add a bunch of callable reveals Douglas Creager 2025-12-15 11:50:07 -05:00
  • 2614be36cc add note about paramspec overloads Douglas Creager 2025-12-15 11:19:27 -05:00
  • a914071640 return a slice! Douglas Creager 2025-12-15 11:16:21 -05:00
  • 483f34207b Revert "add canonically_ordered" Douglas Creager 2025-12-15 12:01:19 -05:00
  • 42185b643b Revert "canonical ordering for constraint set mappings" Douglas Creager 2025-12-15 12:00:32 -05:00
  • 94b4dd86c0 track source_order in PathAssignments Douglas Creager 2025-12-14 20:19:08 -05:00
  • dfcdbcffec Merge remote-tracking branch 'origin/main' into dcreager/callable-return Douglas Creager 2025-12-15 11:06:49 -05:00
  • f8a5d04296 Merge branch 'dcreager/source-order-constraints' into dcreager/callable-return Douglas Creager 2025-12-15 10:52:26 -05:00
  • 4e1cf5747a Fluent formatting of method chains (#21369) Dylan 2025-12-15 09:29:50 -06:00
  • cbfecfaf41 [ty] Avoid stack overflow when calculating inferable typevars (#21971) Douglas Creager 2025-12-15 10:25:33 -05:00
  • cba45acd86 clippy Douglas Creager 2025-12-15 10:23:37 -05:00
  • 1dd3cf0e58 fix test expectations (again) Douglas Creager 2025-12-15 10:22:27 -05:00
  • d9429754b9 include source_order in display_graph output Douglas Creager 2025-12-15 10:16:40 -05:00
  • 7f4893d200 place bounds/constraints first Douglas Creager 2025-12-15 09:15:22 -05:00
  • 88eb5eba22 don't always bump Douglas Creager 2025-12-15 10:05:49 -05:00
  • 8f530a7ab0 [ty] Add "qualify ..." code fix for undefined references (#21968) Aria Desires 2025-12-15 10:14:36 -05:00
  • 5372bb3440 [ty] Use jemalloc on linux (#21975) Micha Reiser 2025-12-15 16:04:34 +01:00
  • 63c75d85d0 only fold once Douglas Creager 2025-12-15 09:55:17 -05:00
  • 358185b5e2 document display source_order Douglas Creager 2025-12-15 09:09:41 -05:00
  • 019db2a22e more comments Douglas Creager 2025-12-15 08:52:44 -05:00
  • ccb03d3b23 remove now-unused items Douglas Creager 2025-12-15 08:40:45 -05:00
  • da31e138b4 fix test expectation Douglas Creager 2025-12-15 08:39:21 -05:00
  • 7e2ea8bd69 use source order in specialize_constrained too Douglas Creager 2025-12-15 08:35:50 -05:00
  • d08e414179 Update MSRV to 1.90 (#21987) Micha Reiser 2025-12-15 14:29:11 +01:00
  • 0b918ae4d5 [ty] Improve check enforcing that an overloaded function must have an implementation (#21978) Alex Waygood 2025-12-15 08:56:35 +00:00
  • 9838f81baf Update actions/checkout digest to 8e8c483 (#21982) renovate[bot] 2025-12-15 06:52:52 +00:00
  • ba47349c2e [ty] Use ParamSpec without the attr for inferable check (#21934) Dhruv Manilawala 2025-12-15 11:04:28 +05:30
  • 1f34f43745 document overall approach Douglas Creager 2025-12-14 21:54:14 -05:00
  • 649c7bce58 more comment Douglas Creager 2025-12-14 21:51:56 -05:00