Skip to content
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

Feature/contains #3

Merged
merged 6 commits into from
Apr 1, 2022
Merged

Feature/contains #3

merged 6 commits into from
Apr 1, 2022

Conversation

Geson-anko
Copy link
Contributor

Implemented the __contains__ method in PathDict to check if the path is contained. from issue

from path_dict import PathDIct
pd = PathDict()
pd["a","b"] = 1
print(["a"] in pd) # True
print(["a","b"] in pd) # True
print(["a","c"] in pd) # False

path_dict/__init__.py Outdated Show resolved Hide resolved
path_dict/__init__.py Outdated Show resolved Hide resolved
path_dict/__init__.py Outdated Show resolved Hide resolved
@Geson-anko
Copy link
Contributor Author

Geson-anko commented Mar 27, 2022

@mkrd Thank you for reviewing my code! I fixed my code to "early return". Let me know if you need anything else.

@mkrd mkrd merged commit 7ec6b75 into mkrd:dev Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants