steep 1.8.2 → 1.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f40f4acb0e71a6cfd2b751297f2fc1a9cd18a87545d24cec51c0da5f1e9792e
4
- data.tar.gz: 947ea73b078a7c1b9dc37e2855a6e483d1bbc919414b97226a3393bf92cb6bf8
3
+ metadata.gz: d97696cd49dd790a9b26f7682c1a1afc930ae0e16015b68f0a5b171851551f66
4
+ data.tar.gz: f2bb9e1a958fe0da3c8b92cf3710bbaeb2eaa6267e38717d46727583e4322638
5
5
  SHA512:
6
- metadata.gz: b146bd6a93a59b5ec7a3029b061fc352c1e93c9bd87cfac89783b9a54175f076bc208a6f94adc32fa2a1802fdc94a422f1c64fbca555eb5ad93481ce7ff88b5d
7
- data.tar.gz: d746bee9df6ab60f43811ec81a415348927bde046cba2cf7b2dd5e4204438e9dc317456ed9d61358fbbfe22125c569451687b9d528b17d1792e470e29dac43c1
6
+ metadata.gz: 69365a7f7bd5919a26bd769c7fa800b51845a93d7dbdbd5c436e72a510098168dbc3ed3d9699399b2a8f0d16f9066d0d3e0ffff835fef0bcf9bce96cfd04d8bf
7
+ data.tar.gz: 5de2dbf818393ec2544a189062f0cad66f5c1b348543ff58861f96f65db53aa55e4e9928f1898ae6afd386116124d4b8554df3180983afe771b6c46f1d77ac3f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.8.3 (2024-10-29)
4
+
5
+ ### Type checker core
6
+
7
+ * Fix untyped hash typing ([#1299](https://github.com/soutaro/steep/pull/1299), Backport in [#1301](https://github.com/soutaro/steep/pull/1301))
8
+
9
+ ### Language server
10
+
11
+ * Handle file deletion notification ([#1300](https://github.com/soutaro/steep/pull/1300), Backport in [#1301](https://github.com/soutaro/steep/pull/1301))
12
+
3
13
  ## 1.8.2 (2024-10-24)
4
14
 
5
15
  ### Language server
@@ -716,10 +716,9 @@ module Steep
716
716
  controller.push_changes(path)
717
717
 
718
718
  case type
719
- when 1, 2
719
+ when LSP::Constant::FileChangeType::CREATED, LSP::Constant::FileChangeType::CHANGED
720
720
  content = path.read
721
- when 4
722
- # Deleted
721
+ when LSP::Constant::FileChangeType::DELETED
723
722
  content = ""
724
723
  end
725
724
 
@@ -1434,10 +1434,10 @@ module Steep
1434
1434
  case hint
1435
1435
  when AST::Types::Any, AST::Types::Top, AST::Types::Void
1436
1436
  # ok
1437
- when hint == pair.type
1438
- # ok
1439
1437
  else
1440
- pair.constr.typing.add_error Diagnostic::Ruby::FallbackAny.new(node: node)
1438
+ unless hint == pair.type
1439
+ pair.constr.typing.add_error Diagnostic::Ruby::FallbackAny.new(node: node)
1440
+ end
1441
1441
  end
1442
1442
  end
1443
1443
  end
@@ -5054,7 +5054,7 @@ module Steep
5054
5054
  if (type_, constr = yield(type, constr))
5055
5055
  constr.check_relation(sub_type: type_, super_type: type).then do
5056
5056
  constr = constr.save_typing
5057
- return Pair.new(type: type, constr: constr)
5057
+ return Pair.new(type: type_, constr: constr)
5058
5058
  end
5059
5059
  end
5060
5060
  end
data/lib/steep/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Steep
2
- VERSION = "1.8.2"
2
+ VERSION = "1.8.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steep
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-24 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -410,7 +410,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
410
410
  - !ruby/object:Gem::Version
411
411
  version: '0'
412
412
  requirements: []
413
- rubygems_version: 3.5.11
413
+ rubygems_version: 3.5.17
414
414
  signing_key:
415
415
  specification_version: 4
416
416
  summary: Gradual Typing for Ruby