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

Add typing to common.sys #968

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Conversation

mferrera
Copy link
Collaborator

@mferrera mferrera commented Nov 8, 2023

Also does some minor refactoring, particularly to the initialization function.

Resolves #897

@mferrera mferrera marked this pull request as ready for review November 8, 2023 11:22
src/xtgeo/common/sys.py Outdated Show resolved Hide resolved
src/xtgeo/common/sys.py Show resolved Hide resolved
src/xtgeo/common/sys.py Show resolved Hide resolved
src/xtgeo/common/sys.py Show resolved Hide resolved
src/xtgeo/common/sys.py Show resolved Hide resolved
src/xtgeo/common/sys.py Show resolved Hide resolved
src/xtgeo/common/sys.py Show resolved Hide resolved
@mferrera mferrera self-assigned this Nov 8, 2023
src/xtgeo/common/sys.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@jcrivenaes jcrivenaes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good as far as I can see (see comment)

Also does some minor refactoring, particularly to the initialization
function.
@codecov-commenter
Copy link

Codecov Report

Merging #968 (3c3f287) into main (49f4c5c) will decrease coverage by 0.06%.
The diff coverage is 70.63%.

@@            Coverage Diff             @@
##             main     #968      +/-   ##
==========================================
- Coverage   80.46%   80.41%   -0.06%     
==========================================
  Files          91       91              
  Lines       13509    13504       -5     
  Branches     2227     2227              
==========================================
- Hits        10870    10859      -11     
- Misses       1911     1918       +7     
+ Partials      728      727       -1     
Files Coverage Δ
src/xtgeo/common/sys.py 74.58% <70.63%> (-2.01%) ⬇️

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@mferrera mferrera merged commit cf2b12a into equinor:main Nov 9, 2023
26 checks passed
@mferrera mferrera deleted the mypy-common-sys branch November 9, 2023 09:47
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.

Add type annotations to common sys functions
3 participants