-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Squash dict add test tags #145
base: main
Are you sure you want to change the base?
Conversation
…o squash-dict-add-test-tags
Codecov Report
@@ Coverage Diff @@
## main #145 +/- ##
==========================================
- Coverage 73.23% 66.71% -6.52%
==========================================
Files 11 12 +1
Lines 609 679 +70
==========================================
+ Hits 446 453 +7
- Misses 163 226 +63
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
self.hint_locals.insert( | ||
"__dict_manager".to_string(), | ||
PyDictManager::new().into_py(py), | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just take the GIL here rather than run everything with it taken.
key: PyMaybeRelocatable, | ||
val: PyMaybeRelocatable, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not always a BigInt
here?
vm: Rc<RefCell<VirtualMachine>>, | ||
hint_value: Relocatable, | ||
pub hint_value: Relocatable, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub(crate)
?
@@ -10,7 +10,7 @@ use std::{cell::RefCell, rc::Rc}; | |||
|
|||
#[pyclass(name = "MemorySegmentManager", unsendable)] | |||
pub struct PySegmentManager { | |||
vm: Rc<RefCell<VirtualMachine>>, | |||
pub(crate) vm: Rc<RefCell<VirtualMachine>>, | |||
#[pyo3(get)] | |||
memory: PyMemory, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's got the VM already, do we really need to keep this instance around?
Depends on #118
Add missing TEST comment to some hints in squash dict.