Open
Description
When running npm run check-snapshots
on macOS off 0834d92, I get the following failure:
Index: /Users/varun/Code/scip-python/packages/pyright-scip/snapshots/output/nested_items/src/importer.py
===================================================================
--- /Users/varun/Code/scip-python/packages/pyright-scip/snapshots/output/nested_items/src/importer.py (what the snapshot tests expect)
+++ /Users/varun/Code/scip-python/packages/pyright-scip/snapshots/output/nested_items/src/importer.py (what the current code produces). Run the command "npm run update-snapshots" to accept the new behavior.
@@ -2,13 +2,13 @@
#documentation (module) src.importer
from foo.bar import InitClass
# ^^^^^^^ reference snapshot-util 0.1 `foo.bar`/__init__:
-# ^^^^^^^^^ reference snapshot-util 0.1 `src.foo.bar`/InitClass#
+# ^^^^^^^^^ reference snapshot-util 0.1 /InitClass#
from foo.bar.baz.mod import SuchNestedMuchWow, AnotherNestedMuchWow
# ^^^^^^^^^^^^^^^ reference snapshot-util 0.1 `foo.bar.baz.mod`/__init__:
-# ^^^^^^^^^^^^^^^^^ reference snapshot-util 0.1 `src.foo.bar.baz.mod`/SuchNestedMuchWow#
-# ^^^^^^^^^^^^^^^^^^^^ reference snapshot-util 0.1 `src.foo.bar.baz.mod`/AnotherNestedMuchWow#
+# ^^^^^^^^^^^^^^^^^ reference snapshot-util 0.1 /SuchNestedMuchWow#
+# ^^^^^^^^^^^^^^^^^^^^ reference snapshot-util 0.1 /AnotherNestedMuchWow#
print(SuchNestedMuchWow().class_item)
#^^^^ reference python-stdlib 3.11 builtins/print().
#external documentation ```python
@@ -19,15 +19,15 @@
# > file: SupportsWrite[str] | None = No...
# > flush: Literal[False] = False
# > ) -> None
# > ```
-# ^^^^^^^^^^^^^^^^^ reference snapshot-util 0.1 `src.foo.bar.baz.mod`/SuchNestedMuchWow#
-# ^^^^^^^^^^ reference snapshot-util 0.1 `src.foo.bar.baz.mod`/SuchNestedMuchWow#class_item.
+# ^^^^^^^^^^^^^^^^^ reference snapshot-util 0.1 /SuchNestedMuchWow#
+# ^^^^^^^^^^ reference snapshot-util 0.1 /SuchNestedMuchWow#class_item.
print(AnotherNestedMuchWow().other_item)
#^^^^ reference python-stdlib 3.11 builtins/print().
-# ^^^^^^^^^^^^^^^^^^^^ reference snapshot-util 0.1 `src.foo.bar.baz.mod`/AnotherNestedMuchWow#
-# ^^^^^^^^^^ reference snapshot-util 0.1 `src.foo.bar.baz.mod`/AnotherNestedMuchWow#other_item.
+# ^^^^^^^^^^^^^^^^^^^^ reference snapshot-util 0.1 /AnotherNestedMuchWow#
+# ^^^^^^^^^^ reference snapshot-util 0.1 /AnotherNestedMuchWow#other_item.
print(InitClass().init_item)
#^^^^ reference python-stdlib 3.11 builtins/print().
-# ^^^^^^^^^ reference snapshot-util 0.1 `src.foo.bar`/InitClass#
-# ^^^^^^^^^ reference snapshot-util 0.1 `src.foo.bar`/InitClass#init_item.
+# ^^^^^^^^^ reference snapshot-util 0.1 /InitClass#
+# ^^^^^^^^^ reference snapshot-util 0.1 /InitClass#init_item.
This is not reproducing on Ubuntu.