language/python: tweak Pathname syntax.

Co-authored-by: Markus Reiter <me@reitermark.us>
This commit is contained in:
Mike McQuaid 2024-04-01 08:09:42 +01:00 committed by GitHub
parent 7931b3cb12
commit e600cc6fef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -263,7 +263,7 @@ module Language
sig { params(formula: Formula, venv_root: T.any(String, Pathname), python: T.any(String, Pathname)).void }
def initialize(formula, venv_root, python)
@formula = formula
@venv_root = T.let(Pathname.new(venv_root), Pathname)
@venv_root = T.let(Pathname(venv_root), Pathname)
@python = python
end