New issue 380: ingest.cache._FileMemo should be public

https://bitbucket.org/blais/beancount/issues/380/ingestcache_filememo-should-be-public



Balázs Keresztury:



Implementing an `importer.ImporterProtocol` usually involves using method 
parameters with the type `ingest.cache._FileMemo` but this class is currently 
[protected](https://bitbucket.org/blais/beancount/src/default/beancount/ingest/cache.py).



In my opinion this class should be public since it is used extensively outside 
of the `beancount.ingest` package and it also causes code inspection errors 
when static typing is employed to enhance IDE code inspection (and type safety 
of course).





```

#!python



    def identify(self, file: cache._FileMemo) -> bool:

            return True

```




-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20190317102543.19010.41662%40celery-worker-110.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to