Skip to content

Commit

Permalink
Update type definitions in networth example
Browse files Browse the repository at this point in the history
Update copyright year
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Feb 1, 2024
1 parent 7acabee commit c72bd95
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2014-2023 Kenneth S. Kundert
Copyright (c) 2014-2024 Kenneth S. Kundert

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Expand Up @@ -48,7 +48,7 @@

# General information about the project.
project = u'inform'
copyright = u'2017-2023, Ken Kundert'
copyright = u'2017-2024, Ken Kundert'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
6 changes: 3 additions & 3 deletions examples/networth
Expand Up @@ -165,6 +165,7 @@ try:
narrate('not found:', config_filepath)

# Get cryptocurrency prices {{{1
prices = {} # type: dict[str, Quantity]
if coins:
import requests

Expand All @@ -178,7 +179,8 @@ try:
cache_valid = age < max_coin_price_age
if cache_valid:
contents = prices_cache.read_text() # type: dict[str, Quantity]
prices = Quantity.extract(contents) # type: dict[str, Quantity]
p = Quantity.extract(contents) # type: dict[str, Quantity]
prices = p
narrate('coin prices are current:', prices_cache)
else:
narrate('updating coin prices')
Expand Down Expand Up @@ -212,8 +214,6 @@ try:
prices_cache.write_text(contents)
narrate('updating coin prices:', prices_cache)
prices['USD'] = Quantity(1, '$')
else:
prices = {}

# Build account summaries {{{1
narrate('running avendesora')
Expand Down
2 changes: 1 addition & 1 deletion inform/inform.py
Expand Up @@ -4,7 +4,7 @@
# Utilities for communicating directly with the user.
# Documentation can be found at inform.readthedocs.io.
#
# Copyright (c) 2014-2023 Kenneth S. Kundert
# Copyright (c) 2014-2024 Kenneth S. Kundert
# This software is licensed under the `MIT Licents <https://mit-license.org>`_.

# Imports {{{1
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Expand Up @@ -3,7 +3,9 @@ envlist = lint, pytest, mypy
isolated_build = True

[testenv:lint]
deps = pylama
deps =
setuptools
pylama
skip_install = true
commands = pylama --ignore C901,E116,E251,E203,E501,E741,E731 inform/*.py

Expand Down

0 comments on commit c72bd95

Please sign in to comment.